Add opcode to TargetInstrDescriptor.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 17 Nov 2006 01:36:01 +0000 (01:36 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 17 Nov 2006 01:36:01 +0000 (01:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31802 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetInstrInfo.h

index db3b813d70a961b06a37b0c3a232170aecbfe270..596afd69c3bc2b4abc3c1e5f5010753a5a2f56a9 100644 (file)
@@ -110,8 +110,9 @@ public:
 
 class TargetInstrDescriptor {
 public:
+  MachineOpCode   Opcode;        // The opcode.
+  unsigned short  numOperands;   // Num of args (may be more if variable_ops).
   const char *    Name;          // Assembly language mnemonic for the opcode.
-  unsigned        numOperands;   // Num of args (may be more if variable_ops).
   InstrSchedClass schedClass;    // enum  identifying instr sched class
   unsigned        Flags;         // flags identifying machine instr class
   unsigned        TSFlags;       // Target Specific Flag values