[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcRegInfo.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Jan 14 17:06:08 PST 2003


Changes in directory llvm/lib/Target/Sparc:

SparcRegInfo.cpp updated: 1.83 -> 1.84

---
Log message:

Rename llvm/Analysis/LiveVar/FunctionLiveVarInfo.h -> llvm/CodeGen/FunctionLiveVarInfo.h



---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/SparcRegInfo.cpp
diff -u llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.83 llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.84
--- llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.83	Sat Dec 28 21:13:02 2002
+++ llvm/lib/Target/Sparc/SparcRegInfo.cpp	Tue Jan 14 17:05:08 2003
@@ -15,15 +15,18 @@
 #include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/MachineInstrAnnot.h"
 #include "llvm/CodeGen/RegAllocCommon.h"
-#include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h"
+#include "llvm/CodeGen/FunctionLiveVarInfo.h"   // FIXME: Remove
 #include "llvm/iTerminators.h"
 #include "llvm/iOther.h"
 #include "llvm/Function.h"
 #include "llvm/DerivedTypes.h"
-#include <values.h>
 using std::cerr;
 using std::vector;
 
+enum {
+  BadRegClass = ~0
+};
+
 UltraSparcRegInfo::UltraSparcRegInfo(const UltraSparc &tgt)
   : TargetRegInfo(tgt), NumOfIntArgRegs(6), 
     NumOfFloatArgRegs(32), InvalidRegNum(1000) {
@@ -390,7 +393,7 @@
     assert(LR && "No live range found for method arg");
     
     unsigned regType = getRegType(LR);
-    unsigned regClassIDOfArgReg = MAXINT; // reg class of chosen reg (unused)
+    unsigned regClassIDOfArgReg = BadRegClass; // reg class of chosen reg (unused)
     
     int regNum = (regType == IntRegType)
       ? regNumForIntArg(/*inCallee*/ true, isVarArgs,
@@ -434,7 +437,7 @@
     //
     bool isArgInReg = false;
     unsigned UniArgReg = InvalidRegNum;	// reg that LR MUST be colored with
-    unsigned regClassIDOfArgReg = MAXINT; // reg class of chosen reg
+    unsigned regClassIDOfArgReg = BadRegClass; // reg class of chosen reg
     
     int regNum = (regType == IntRegType)
       ? regNumForIntArg(/*inCallee*/ true, isVarArgs,
@@ -605,7 +608,7 @@
                   "all args (even consts) must be defined before");
 
     unsigned regType = getRegType( LR );
-    unsigned regClassIDOfArgReg = MAXINT; // reg class of chosen reg (unused)
+    unsigned regClassIDOfArgReg = BadRegClass; // reg class of chosen reg (unused)
 
     // Choose a register for this arg depending on whether it is
     // an INT or FP value.  Here we ignore whether or not it is a
@@ -657,7 +660,7 @@
 {
   MachineInstr *AdMI;
   bool isArgInReg = false;
-  unsigned UniArgReg = MAXINT;          // unused unless initialized below
+  unsigned UniArgReg = BadRegClass;          // unused unless initialized below
   if (UniArgRegOrNone != InvalidRegNum)
     {
       isArgInReg = true;
@@ -847,7 +850,7 @@
     //
     bool isArgInReg = false;
     unsigned UniArgReg = InvalidRegNum;	  // reg that LR MUST be colored with
-    unsigned regClassIDOfArgReg = MAXINT; // reg class of chosen reg
+    unsigned regClassIDOfArgReg = BadRegClass; // reg class of chosen reg
     
     // Find the register that must be used for this arg, depending on
     // whether it is an INT or FP value.  Here we ignore whether or not it





More information about the llvm-commits mailing list