diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-06-03 20:34:53 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-06-03 20:34:53 +0000 |
commit | 5f2316a3b55f88dab2190212210770180a32aa95 (patch) | |
tree | b7cf1543bab66cb34f478ae01a398843834e5b63 /lib/CodeGen/AllocationOrder.h | |
parent | d365fa9415ce31b5f0a6019b33c6f099a82f4e34 (diff) |
Switch AllocationOrder to using RegisterClassInfo instead of a BitVector
of reserved registers.
Use RegisterClassInfo in RABasic as well. This slightly changes som
allocation orders because RegisterClassInfo puts CSR aliases last.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AllocationOrder.h')
-rw-r--r-- | lib/CodeGen/AllocationOrder.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/AllocationOrder.h b/lib/CodeGen/AllocationOrder.h index 61fd8f881a..4742e8e196 100644 --- a/lib/CodeGen/AllocationOrder.h +++ b/lib/CodeGen/AllocationOrder.h @@ -19,14 +19,14 @@ namespace llvm { -class BitVector; +class RegisterClassInfo; class VirtRegMap; class AllocationOrder { const unsigned *Begin; const unsigned *End; const unsigned *Pos; - const BitVector &Reserved; + const RegisterClassInfo &RCI; unsigned Hint; public: @@ -37,7 +37,7 @@ public: /// TargetRegisterInfo::getReservedRegs(). AllocationOrder(unsigned VirtReg, const VirtRegMap &VRM, - const BitVector &ReservedRegs); + const RegisterClassInfo &RegClassInfo); /// next - Return the next physical register in the allocation order, or 0. /// It is safe to call next again after it returned 0. |