Change the createSpiller interface to take a MachineFunctionPass argument.

The spillers can pluck the analyses they need from the pass reference.

Switch some never-null pointers to references.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen
2010-07-20 23:50:15 +00:00
parent 549979f550
commit f2c6e367c1
6 changed files with 64 additions and 60 deletions
+7 -7
View File
@@ -34,13 +34,13 @@ AllowSplit("spiller-splits-edges",
// Split Analysis
//===----------------------------------------------------------------------===//
SplitAnalysis::SplitAnalysis(const MachineFunction *mf,
const LiveIntervals *lis,
const MachineLoopInfo *mli)
: mf_(*mf),
lis_(*lis),
loops_(*mli),
tii_(*mf->getTarget().getInstrInfo()),
SplitAnalysis::SplitAnalysis(const MachineFunction &mf,
const LiveIntervals &lis,
const MachineLoopInfo &mli)
: mf_(mf),
lis_(lis),
loops_(mli),
tii_(*mf.getTarget().getInstrInfo()),
curli_(0) {}
void SplitAnalysis::clear() {