aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/RegAllocBase.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-10 23:49:00 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-10 23:49:00 +0000
commit4680dec5fb3a1b624f13ca9b2a555ca90a07973e (patch)
tree6c91858e8b211158d403f708a783f4a3ae177ab9 /lib/CodeGen/RegAllocBase.h
parent092e2cd5693114a4f1d93eb5b72f3e194de27236 (diff)
downloadexternal_llvm-4680dec5fb3a1b624f13ca9b2a555ca90a07973e.zip
external_llvm-4680dec5fb3a1b624f13ca9b2a555ca90a07973e.tar.gz
external_llvm-4680dec5fb3a1b624f13ca9b2a555ca90a07973e.tar.bz2
Move MRI into RegAllocBase. Clean up debug output a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocBase.h')
-rw-r--r--lib/CodeGen/RegAllocBase.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocBase.h b/lib/CodeGen/RegAllocBase.h
index 71c3faf..7d13327 100644
--- a/lib/CodeGen/RegAllocBase.h
+++ b/lib/CodeGen/RegAllocBase.h
@@ -84,6 +84,7 @@ protected:
};
const TargetRegisterInfo *TRI;
+ MachineRegisterInfo *MRI;
VirtRegMap *VRM;
LiveIntervals *LIS;
LiveUnionArray PhysReg2LiveUnion;
@@ -92,12 +93,12 @@ protected:
// query on a new live virtual register.
OwningArrayPtr<LiveIntervalUnion::Query> Queries;
- RegAllocBase(): TRI(0), VRM(0), LIS(0) {}
+ RegAllocBase(): TRI(0), MRI(0), VRM(0), LIS(0) {}
virtual ~RegAllocBase() {}
// A RegAlloc pass should call this before allocatePhysRegs.
- void init(const TargetRegisterInfo &tri, VirtRegMap &vrm, LiveIntervals &lis);
+ void init(VirtRegMap &vrm, LiveIntervals &lis);
// Get an initialized query to check interferences between lvr and preg. Note
// that Query::init must be called at least once for each physical register