[llvm-commits] CVS: llvm/lib/CodeGen/MachineInstr.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 29 11:41:03 PST 2002
Changes in directory llvm/lib/CodeGen:
MachineInstr.cpp updated: 1.56 -> 1.57
---
Log message:
Move TargetInstrDescriptors extern to the one .cpp file that refers to it:
MachineInstr.cpp
---
Diffs of the changes:
Index: llvm/lib/CodeGen/MachineInstr.cpp
diff -u llvm/lib/CodeGen/MachineInstr.cpp:1.56 llvm/lib/CodeGen/MachineInstr.cpp:1.57
--- llvm/lib/CodeGen/MachineInstr.cpp:1.56 Tue Oct 29 11:35:39 2002
+++ llvm/lib/CodeGen/MachineInstr.cpp Tue Oct 29 11:40:30 2002
@@ -7,6 +7,14 @@
#include "llvm/Target/MachineInstrInfo.h" // FIXME: shouldn't need this!
using std::cerr;
+// Global variable holding an array of descriptors for machine instructions.
+// The actual object needs to be created separately for each target machine.
+// This variable is initialized and reset by class MachineInstrInfo.
+//
+// FIXME: This should be a property of the target so that more than one target
+// at a time can be active...
+//
+extern const MachineInstrDescriptor *TargetInstrDescriptors;
// Constructor for instructions with fixed #operands (nearly all)
MachineInstr::MachineInstr(MachineOpCode _opCode)
More information about the llvm-commits
mailing list