define a new CodeGenInstAlias. It has an asmstring and operand list for now,
todo: the result field.
llvm-svn: 117894
diff --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h
index 93bec14..f05a88f 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.h
+++ b/llvm/utils/TableGen/CodeGenInstruction.h
@@ -235,6 +235,23 @@
static std::string FlattenAsmStringVariants(StringRef AsmString,
unsigned Variant);
};
- }
+
+
+ /// CodeGenInstAlias - This represents an InstAlias definition.
+ class CodeGenInstAlias {
+ public:
+ Record *TheDef; // The actual record defining this InstAlias.
+
+ /// AsmString - The format string used to emit a .s file for the
+ /// instruction.
+ std::string AsmString;
+
+ /// Operands - This is information about the (ins) and (outs) list specified
+ /// to the alias.
+ CGIOperandList Operands;
+
+ CodeGenInstAlias(Record *R);
+ };
+}
#endif