summaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeGenInstruction.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
commitc76e80ded753b78a72be0db40fcdba543435d818 (patch)
treebf460b6015c971a6295645961377dc6d2e3435be /utils/TableGen/CodeGenInstruction.cpp
parentc240bb0ede0541426254d0e0dc81d891beda4b22 (diff)
downloadllvm-c76e80ded753b78a72be0db40fcdba543435d818.tar.gz
llvm-c76e80ded753b78a72be0db40fcdba543435d818.tar.bz2
llvm-c76e80ded753b78a72be0db40fcdba543435d818.tar.xz
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/CodeGenInstruction.cpp')
-rw-r--r--utils/TableGen/CodeGenInstruction.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenInstruction.cpp b/utils/TableGen/CodeGenInstruction.cpp
index 5eceaeb015..8a05374d8c 100644
--- a/utils/TableGen/CodeGenInstruction.cpp
+++ b/utils/TableGen/CodeGenInstruction.cpp
@@ -382,3 +382,13 @@ FlattenAsmStringVariants(StringRef Cur, unsigned Variant) {
return Res;
}
+
+//===----------------------------------------------------------------------===//
+/// CodeGenInstAlias Implementation
+//===----------------------------------------------------------------------===//
+
+CodeGenInstAlias::CodeGenInstAlias(Record *R) : TheDef(R), Operands(R) {
+ AsmString = R->getValueAsString("AsmString");
+
+
+}