diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-09-19 15:56:23 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-09-19 15:56:23 +0000 |
| commit | e86a0230aaa287f9193de2fd60be2b53da29567f (patch) | |
| tree | 93cd08b86f410de8f23a2ef876443e31908fe28d /llvm/lib/Target/Sparc/Sparc.cpp | |
| parent | 92c15742adcf96d1770a88dbe3dabe57c0045a9d (diff) | |
| download | bcm5719-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.cpp | 14 |
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 // |

