[llvm-commits] CVS: llvm/include/llvm/Target/MachineInstrInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Dec 15 16:17:01 PST 2002
Changes in directory llvm/include/llvm/Target:
MachineInstrInfo.h updated: 1.37 -> 1.38
---
Log message:
Export well known instruction opcodes usable by target independant passes
---
Diffs of the changes:
Index: llvm/include/llvm/Target/MachineInstrInfo.h
diff -u llvm/include/llvm/Target/MachineInstrInfo.h:1.37 llvm/include/llvm/Target/MachineInstrInfo.h:1.38
--- llvm/include/llvm/Target/MachineInstrInfo.h:1.37 Thu Dec 12 17:19:51 2002
+++ llvm/include/llvm/Target/MachineInstrInfo.h Sun Dec 15 16:16:08 2002
@@ -85,6 +85,12 @@
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; }
More information about the llvm-commits
mailing list