summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/AsmMatcherEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-01 04:05:41 +0000
committerChris Lattner <sabre@nondot.org>2010-11-01 04:05:41 +0000
commit488c201bb713874da04c53c919e34231bf3852bf (patch)
tree29de11310f1278723fd68e18f3ec22faf751469d /llvm/utils/TableGen/AsmMatcherEmitter.cpp
parentd8adec70f321a22f996d772db16f0b6682efd98e (diff)
downloadbcm5719-llvm-488c201bb713874da04c53c919e34231bf3852bf.tar.gz
bcm5719-llvm-488c201bb713874da04c53c919e34231bf3852bf.zip
define a new CodeGenInstAlias. It has an asmstring and operand list for now,
todo: the result field. llvm-svn: 117894
Diffstat (limited to 'llvm/utils/TableGen/AsmMatcherEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/AsmMatcherEmitter.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
index 254a719959f..d269749c9f1 100644
--- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud