Printing support for more stuff
[oota-llvm.git] / lib / Target / SparcV9 / SparcV9TargetMachine.cpp
index e8f9c9ee728c6a0794827e794222c17e8f669e1e..d00fece480b268c970cce8cad93f6cc62cd9a87f 100644 (file)
@@ -28,7 +28,7 @@ const MachineInstrDescriptor SparcMachineInstrDesc[] = {
 #define I(ENUM, OPCODESTRING, NUMOPERANDS, RESULTPOS, MAXIMM, IMMSE, \
           NUMDELAYSLOTS, LATENCY, SCHEDCLASS, INSTFLAGS)             \
   { OPCODESTRING, NUMOPERANDS, RESULTPOS, MAXIMM, IMMSE,             \
-          NUMDELAYSLOTS, LATENCY, SCHEDCLASS, INSTFLAGS },
+          NUMDELAYSLOTS, LATENCY, SCHEDCLASS, INSTFLAGS, 0 },
 #include "SparcInstr.def"
 };
 
@@ -125,16 +125,12 @@ UltraSparcFrameInfo::getDynamicAreaOffset(MachineFunction& mcInfo,
 //---------------------------------------------------------------------------
 
 UltraSparc::UltraSparc()
-  : TargetMachine("UltraSparc-Native"),
+  : TargetMachine("UltraSparc-Native", 4),
     schedInfo(*this),
     regInfo(*this),
     frameInfo(*this),
     cacheInfo(*this),
-    optInfo(*this)
-{
-  optSizeForSubWordData = 4;
-  minMemOpWordSize = 8; 
-  maxAtomicMemOpWordSize = 8;
+    optInfo(*this) {
 }
 
 
@@ -155,7 +151,7 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
   if (!DisablePreSelect)
     {
       PM.add(createPreSelectionPass(*this));
-      /* PM.add(createReassociatePass()); */
+      PM.add(createReassociatePass());
       PM.add(createLICMPass());
       PM.add(createGCSEPass());
     }