aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/RegAllocBase.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-05 23:57:30 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-05 23:57:30 +0000
commit0e5a60b4ebc06a4fe6bb58f0200acf130d7be685 (patch)
tree8e5b642a02bf98a805655d150272c6a37fd0fad7 /lib/CodeGen/RegAllocBase.h
parent2fd0923593c4d30691a45ade1e8b0bd484896c3f (diff)
downloadexternal_llvm-0e5a60b4ebc06a4fe6bb58f0200acf130d7be685.zip
external_llvm-0e5a60b4ebc06a4fe6bb58f0200acf130d7be685.tar.gz
external_llvm-0e5a60b4ebc06a4fe6bb58f0200acf130d7be685.tar.bz2
Move LiveUnionArray into LiveIntervalUnion.h
It is useful outside RegAllocBase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocBase.h')
-rw-r--r--lib/CodeGen/RegAllocBase.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/lib/CodeGen/RegAllocBase.h b/lib/CodeGen/RegAllocBase.h
index 072fe2b..d55484f 100644
--- a/lib/CodeGen/RegAllocBase.h
+++ b/lib/CodeGen/RegAllocBase.h
@@ -62,27 +62,7 @@ class RegAllocBase {
// registers may have changed.
unsigned UserTag;
- // Array of LiveIntervalUnions indexed by physical register.
- class LiveUnionArray {
- unsigned NumRegs;
- LiveIntervalUnion *Array;
- public:
- LiveUnionArray(): NumRegs(0), Array(0) {}
- ~LiveUnionArray() { clear(); }
-
- unsigned numRegs() const { return NumRegs; }
-
- void init(LiveIntervalUnion::Allocator &, unsigned NRegs);
-
- void clear();
-
- LiveIntervalUnion& operator[](unsigned PhysReg) {
- assert(PhysReg < NumRegs && "physReg out of bounds");
- return Array[PhysReg];
- }
- };
-
- LiveUnionArray PhysReg2LiveUnion;
+ LiveIntervalUnion::Array PhysReg2LiveUnion;
// Current queries, one per physreg. They must be reinitialized each time we
// query on a new live virtual register.