[llvm-commits] CVS: reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp UnpackTraceFunction.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Mon Mar 1 15:21:01 PST 2004


Changes in directory reopt/lib/LightWtProfiling:

RuntimeOptimizations.cpp updated: 1.20 -> 1.21
UnpackTraceFunction.cpp updated: 1.39 -> 1.40

---
Log message:

More great renaming fallout.


---
Diffs of the changes:  (+8 -8)

Index: reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp
diff -u reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.20 reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.21
--- reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.20	Fri Jan 30 15:53:57 2004
+++ reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp	Mon Mar  1 15:20:02 2004
@@ -51,7 +51,7 @@
   // target machine, if there isn't one already.
   if (!MP) initModules ();
   if (!IL) IL = new DefaultIntrinsicLowering ();
-  if (!Target) Target = allocateSparcTargetMachine (*MP->getModule (), IL);
+  if (!Target) Target = allocateSparcV9TargetMachine (*MP->getModule (), IL);
 
   // Turn the vector of basic blocks into a Trace, and then turn the Trace into
   // a TraceFunction.


Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.39 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.40
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.39	Fri Feb 27 16:25:25 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp	Mon Mar  1 15:20:02 2004
@@ -26,8 +26,8 @@
 
 #include "../../../../lib/Target/SparcV9/RegAlloc/AllocInfo.h"
 #include "../../../../lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h"
-#include "../../../../lib/Target/SparcV9/SparcRegInfo.h"
-#include "../../../../lib/Target/SparcV9/SparcTargetMachine.h"
+#include "../../../../lib/Target/SparcV9/SparcV9RegInfo.h"
+#include "../../../../lib/Target/SparcV9/SparcV9TargetMachine.h"
 
 namespace llvm {
 
@@ -53,11 +53,11 @@
   int RegType;
   // Guess what kind of reg the register was allocated to.
   if (Ty == Type::FloatTy)
-    RegType = SparcRegInfo::FPSingleRegType;
+    RegType = SparcV9RegInfo::FPSingleRegType;
   else if (Ty == Type::DoubleTy)
-    RegType = SparcRegInfo::FPDoubleRegType;
+    RegType = SparcV9RegInfo::FPDoubleRegType;
   else
-    RegType = SparcRegInfo::IntRegType;
+    RegType = SparcV9RegInfo::IntRegType;
   const unsigned FramePtrReg = TRI.getFramePointer ();
   const unsigned StackPtrReg = TRI.getStackPointer ();
   if (Source.AllocState == AllocInfo::Spilled
@@ -77,8 +77,8 @@
   } else if (Source.AllocState == AllocInfo::Spilled
              && Target.AllocState == AllocInfo::Spilled) {
     const unsigned TempReg = 
-      TRI.getUnifiedRegNum (SparcRegInfo::IntRegClassID,
-                            SparcIntRegClass::g1); // just pick one?
+      TRI.getUnifiedRegNum (SparcV9RegInfo::IntRegClassID,
+                            SparcV9IntRegClass::g1); // just pick one?
     // Emit load instruction from stack loc. Source into register TempReg
     TRI.cpMem2RegMI (mvec, FramePtrReg, Source.Placement, TempReg, RegType);
     // Emit store instruction from register TempReg to stack loc. Target





More information about the llvm-commits mailing list