diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-03-08 23:22:01 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-03-08 23:22:01 +0000 |
commit | 757ccd5149eb804b3b87979be049263f3070c4d8 (patch) | |
tree | 77443bad1cf90437037f6802ec9f4b42a167dbfb /lib/Target/SparcV9/RegAlloc | |
parent | efc182e49ca2c2aacaa637b16d50e77d00003f55 (diff) | |
download | external_llvm-757ccd5149eb804b3b87979be049263f3070c4d8.zip external_llvm-757ccd5149eb804b3b87979be049263f3070c4d8.tar.gz external_llvm-757ccd5149eb804b3b87979be049263f3070c4d8.tar.bz2 |
Make AllocInfo's Instruction an int, so that we can overload it for arguments.
(Instruction #-1's operands = argument list).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12245 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/RegAlloc')
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/AllocInfo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/SparcV9/RegAlloc/AllocInfo.h b/lib/Target/SparcV9/RegAlloc/AllocInfo.h index b440752..6a7304a 100644 --- a/lib/Target/SparcV9/RegAlloc/AllocInfo.h +++ b/lib/Target/SparcV9/RegAlloc/AllocInfo.h @@ -26,8 +26,8 @@ namespace llvm { /// structures to generate mapping information for this register allocator. /// struct AllocInfo { - unsigned Instruction; - int Operand; // (-1 if Instruction, or 0...n-1 for an operand.) + int Instruction; // (-1 if Argument, or 0 .. n - 1 for an instruction). + int Operand; // (-1 if Instruction, or 0 .. n-1 for an operand). enum AllocStateTy { NotAllocated = 0, Allocated, Spilled }; AllocStateTy AllocState; int Placement; @@ -41,7 +41,7 @@ struct AllocInfo { /// static StructType *getConstantType () { std::vector<const Type *> TV; - TV.push_back (Type::UIntTy); + TV.push_back (Type::IntTy); TV.push_back (Type::IntTy); TV.push_back (Type::UIntTy); TV.push_back (Type::IntTy); @@ -54,7 +54,7 @@ struct AllocInfo { Constant *toConstant () const { StructType *ST = getConstantType (); std::vector<Constant *> CV; - CV.push_back (ConstantUInt::get (Type::UIntTy, Instruction)); + CV.push_back (ConstantSInt::get (Type::IntTy, Instruction)); CV.push_back (ConstantSInt::get (Type::IntTy, Operand)); CV.push_back (ConstantUInt::get (Type::UIntTy, AllocState)); CV.push_back (ConstantSInt::get (Type::IntTy, Placement)); |