Classes need to have a prefix name, so that they can be tacked on to the pieces
[oota-llvm.git] / lib / Target / Target.td
index 1e75e5aa827c2ea9d6a40cce38799e8cb7c1e678..6fada3452e6068ca5171613b181ad579db9a34f8 100644 (file)
@@ -106,8 +106,9 @@ class RegisterClass<ValueType regType, int alignment, list<Register> regList> {
 // the Target/TargetInstrInfo.h file.
 //
 class Instruction {
-  string Name;              // The opcode string for this instruction
+  string Name = "";         // The opcode string for this instruction
   string Namespace = "";
+  string ClassPrefix = "";
 
   dag OperandList;          // An dag containing the MI operand list.
   string AsmString = "";    // The .s format to print the instruction with.
@@ -151,7 +152,10 @@ class InstrInfo {
 /// list for an instruction.  This should be used like this:
 ///     (ops R32:$dst, R32:$src) or something similar.
 def ops;
-
+def i8imm;
+def i16imm;
+def i32imm;
+def i64imm;
 
 //===----------------------------------------------------------------------===//
 // Target - This class contains the "global" target information