summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/Sparc.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-19 15:56:23 +0000
committerChris Lattner <sabre@nondot.org>2001-09-19 15:56:23 +0000
commite86a0230aaa287f9193de2fd60be2b53da29567f (patch)
tree93cd08b86f410de8f23a2ef876443e31908fe28d /llvm/lib/Target/Sparc/Sparc.cpp
parent92c15742adcf96d1770a88dbe3dabe57c0045a9d (diff)
downloadbcm5719-llvm-e86a0230aaa287f9193de2fd60be2b53da29567f.tar.gz
bcm5719-llvm-e86a0230aaa287f9193de2fd60be2b53da29567f.zip
Seperate instruction definitions into new SparcInstr.def file
Move contents of SparcMachineInstrDesc[] out of SparcInternals.h into Sparc.cpp llvm-svn: 644
Diffstat (limited to 'llvm/lib/Target/Sparc/Sparc.cpp')
-rw-r--r--llvm/lib/Target/Sparc/Sparc.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/llvm/lib/Target/Sparc/Sparc.cpp b/llvm/lib/Target/Sparc/Sparc.cpp
index f2caf388423..dac4d208da7 100644
--- a/llvm/lib/Target/Sparc/Sparc.cpp
+++ b/llvm/lib/Target/Sparc/Sparc.cpp
@@ -18,8 +18,14 @@
#include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h"
#include "llvm/CodeGen/PhyRegAlloc.h"
-
-//***************************** Internal Functions *************************/
+// Build the MachineInstruction Description Array...
+const MachineInstrDescriptor SparcMachineInstrDesc[] = {
+#define I(ENUM, OPCODESTRING, NUMOPERANDS, RESULTPOS, MAXIMM, IMMSE, \
+ NUMDELAYSLOTS, LATENCY, SCHEDCLASS, INSTFLAGS) \
+ { OPCODESTRING, NUMOPERANDS, RESULTPOS, MAXIMM, IMMSE, \
+ NUMDELAYSLOTS, LATENCY, SCHEDCLASS, INSTFLAGS },
+#include "SparcInstr.def"
+};
//----------------------------------------------------------------------------
// allocateSparcTargetMachine - Allocate and return a subclass of TargetMachine
@@ -59,10 +65,6 @@ void AllocateRegisters(Method *M, TargetMachine &TM)
-
-//***************************** External Classes **************************/
-
-
//---------------------------------------------------------------------------
// class UltraSparcInstrInfo
//
OpenPOWER on IntegriCloud