diff --git a/llvm/utils/TableGen/DecoderEmitter.cpp b/llvm/utils/TableGen/DecoderEmitter.cpp index 4b04b33502d25..77bf60e14c9a8 100644 --- a/llvm/utils/TableGen/DecoderEmitter.cpp +++ b/llvm/utils/TableGen/DecoderEmitter.cpp @@ -160,8 +160,8 @@ class LessEncodingIDByWidth { } }; -typedef SmallSetVector PredicateSet; -typedef SmallSetVector DecoderSet; +using PredicateSet = SetVector; +using DecoderSet = SetVector; class DecoderTable { public: @@ -274,7 +274,7 @@ class DecoderEmitter { void emitInstrLenTable(formatted_raw_ostream &OS, ArrayRef InstrLen) const; void emitPredicateFunction(formatted_raw_ostream &OS, - PredicateSet &Predicates) const; + const PredicateSet &Predicates) const; void emitDecoderFunction(formatted_raw_ostream &OS, const DecoderSet &Decoders, unsigned BucketBitWidth) const; @@ -838,8 +838,8 @@ void DecoderEmitter::emitInstrLenTable(formatted_raw_ostream &OS, OS << "};\n\n"; } -void DecoderEmitter::emitPredicateFunction(formatted_raw_ostream &OS, - PredicateSet &Predicates) const { +void DecoderEmitter::emitPredicateFunction( + formatted_raw_ostream &OS, const PredicateSet &Predicates) const { // The predicate function is just a big switch statement based on the // input predicate index. OS << "static bool checkDecoderPredicate(unsigned Idx, const FeatureBitset "