@@ -160,8 +160,8 @@ class LessEncodingIDByWidth {
160
160
}
161
161
};
162
162
163
- typedef SmallSetVector <CachedHashString, 16 > PredicateSet ;
164
- typedef SmallSetVector <CachedHashString, 16 > DecoderSet ;
163
+ using PredicateSet = SetVector <CachedHashString> ;
164
+ using DecoderSet = SetVector <CachedHashString> ;
165
165
166
166
class DecoderTable {
167
167
public:
@@ -274,7 +274,7 @@ class DecoderEmitter {
274
274
void emitInstrLenTable (formatted_raw_ostream &OS,
275
275
ArrayRef<unsigned > InstrLen) const ;
276
276
void emitPredicateFunction (formatted_raw_ostream &OS,
277
- PredicateSet &Predicates) const ;
277
+ const PredicateSet &Predicates) const ;
278
278
void emitDecoderFunction (formatted_raw_ostream &OS,
279
279
const DecoderSet &Decoders,
280
280
unsigned BucketBitWidth) const ;
@@ -838,8 +838,8 @@ void DecoderEmitter::emitInstrLenTable(formatted_raw_ostream &OS,
838
838
OS << " };\n\n " ;
839
839
}
840
840
841
- void DecoderEmitter::emitPredicateFunction (formatted_raw_ostream &OS,
842
- PredicateSet &Predicates) const {
841
+ void DecoderEmitter::emitPredicateFunction (
842
+ formatted_raw_ostream &OS, const PredicateSet &Predicates) const {
843
843
// The predicate function is just a big switch statement based on the
844
844
// input predicate index.
845
845
OS << " static bool checkDecoderPredicate(unsigned Idx, const FeatureBitset "
0 commit comments