diff options
Diffstat (limited to 'llvm/utils/TableGen/AsmMatcherEmitter.cpp')
| -rw-r--r-- | llvm/utils/TableGen/AsmMatcherEmitter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp index 9f18a11..63c9c3b 100644 --- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp +++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp @@ -141,7 +141,7 @@ class AsmMatcherInfo; // RegisterSets can be seen in the outputted AsmMatcher tables occasionally, and // can even affect compiler output (at least seen in diagnostics produced when // all matches fail). So we use a type that sorts them consistently. -typedef std::set<const Record *, LessRecordByID> RegisterSet; +using RegisterSet = std::set<const Record *, LessRecordByID>; class AsmMatcherEmitter { const RecordKeeper &Records; @@ -779,8 +779,8 @@ public: std::vector<OperandMatchEntry> OperandMatchInfo; /// Map of Register records to their class information. - typedef std::map<const Record *, ClassInfo *, LessRecordByID> - RegisterClassesTy; + using RegisterClassesTy = + std::map<const Record *, ClassInfo *, LessRecordByID>; RegisterClassesTy RegisterClasses; /// Map of Predicate records to their subtarget information. @@ -1275,7 +1275,7 @@ void AsmMatcherInfo::buildRegisterClasses( const auto &Registers = Target.getRegBank().getRegisters(); auto &RegClassList = Target.getRegBank().getRegClasses(); - typedef std::set<RegisterSet, LessRegisterSet> RegisterSetSet; + using RegisterSetSet = std::set<RegisterSet, LessRegisterSet>; // The register sets used for matching. RegisterSetSet RegisterSets; @@ -1515,7 +1515,7 @@ AsmMatcherInfo::AsmMatcherInfo(const Record *asmParser, void AsmMatcherInfo::buildOperandMatchInfo() { /// Map containing a mask with all operands indices that can be found for /// that class inside a instruction. - typedef std::map<ClassInfo *, unsigned, deref<std::less<>>> OpClassMaskTy; + using OpClassMaskTy = std::map<ClassInfo *, unsigned, deref<std::less<>>>; OpClassMaskTy OpClassMask; bool CallCustomParserForAllOperands = |
