Export well known instruction opcodes usable by target independant passes
authorChris Lattner <sabre@nondot.org>
Sun, 15 Dec 2002 22:16:08 +0000 (22:16 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Dec 2002 22:16:08 +0000 (22:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5063 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/MachineInstrInfo.h
include/llvm/Target/TargetInstrInfo.h

index f4a6a7714cc31076e308063dabf700ac2a492431..ea16d3dfd8f452f83480e7a31f739bb651c25845 100644 (file)
@@ -85,6 +85,12 @@ public:
   MachineInstrInfo(const MachineInstrDescriptor *desc, unsigned descSize,
                   unsigned numRealOpCodes);
   virtual ~MachineInstrInfo();
+
+  // Invariant: All instruction sets use opcode #0 as the PHI instruction and
+  // opcode #1 as the noop instruction.
+  enum {
+    PHI = 0, NOOP = 1
+  };
   
   unsigned getNumRealOpCodes()  const { return numRealOpCodes; }
   unsigned getNumTotalOpCodes() const { return descSize; }
index f4a6a7714cc31076e308063dabf700ac2a492431..ea16d3dfd8f452f83480e7a31f739bb651c25845 100644 (file)
@@ -85,6 +85,12 @@ public:
   MachineInstrInfo(const MachineInstrDescriptor *desc, unsigned descSize,
                   unsigned numRealOpCodes);
   virtual ~MachineInstrInfo();
+
+  // Invariant: All instruction sets use opcode #0 as the PHI instruction and
+  // opcode #1 as the noop instruction.
+  enum {
+    PHI = 0, NOOP = 1
+  };
   
   unsigned getNumRealOpCodes()  const { return numRealOpCodes; }
   unsigned getNumTotalOpCodes() const { return descSize; }