// 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.
+ string AsmString = ""; // The .s format to print the instruction with.
// Pattern - Set to the DAG pattern for this instruction, if we know of one,
// otherwise, uninitialized.
list<int> TSFlagsShifts = [];
}
+/// ops definition - This is just a simple marker used to identify the operands
+/// 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