diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-01 04:05:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-01 04:05:41 +0000 |
commit | c76e80ded753b78a72be0db40fcdba543435d818 (patch) | |
tree | bf460b6015c971a6295645961377dc6d2e3435be /utils/TableGen/AsmMatcherEmitter.cpp | |
parent | c240bb0ede0541426254d0e0dc81d891beda4b22 (diff) |
define a new CodeGenInstAlias. It has an asmstring and operand list for now,
todo: the result field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/AsmMatcherEmitter.cpp')
-rw-r--r-- | utils/TableGen/AsmMatcherEmitter.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index 254a719959..d269749c9f 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -946,6 +946,15 @@ void AsmMatcherInfo::BuildInfo() { Instructions.push_back(II.take()); } + // Parse all of the InstAlias definitions. + std::vector<Record*> AllInstAliases = + Records.getAllDerivedDefinitions("InstAlias"); + for (unsigned i = 0, e = AllInstAliases.size(); i != e; ++i) { + CodeGenInstAlias *Alias = new CodeGenInstAlias(AllInstAliases[i]); + + + (void)Alias; + } // Build info for the register classes. BuildRegisterClasses(SingletonRegisters); |