summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/Spiller.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-20 23:50:15 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-20 23:50:15 +0000
commit0fef9dda8ec1f4a20693a0518cfb6142a1e82fc3 (patch)
treea29721718fbfcbb231c07bbadb43d2e1cf81947d /llvm/lib/CodeGen/Spiller.h
parentafbe4a7a106ac8309d08382c43fd249423a736ab (diff)
downloadbcm5719-llvm-0fef9dda8ec1f4a20693a0518cfb6142a1e82fc3.tar.gz
bcm5719-llvm-0fef9dda8ec1f4a20693a0518cfb6142a1e82fc3.zip
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. llvm-svn: 108969
Diffstat (limited to 'llvm/lib/CodeGen/Spiller.h')
-rw-r--r--llvm/lib/CodeGen/Spiller.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/Spiller.h b/llvm/lib/CodeGen/Spiller.h
index b907f21db85..3d5172a9d06 100644
--- a/llvm/lib/CodeGen/Spiller.h
+++ b/llvm/lib/CodeGen/Spiller.h
@@ -16,14 +16,10 @@
namespace llvm {
class LiveInterval;
- class LiveIntervals;
- class LiveStacks;
class MachineFunction;
- class MachineInstr;
- class MachineLoopInfo;
+ class MachineFunctionPass;
class SlotIndex;
class VirtRegMap;
- class VNInfo;
/// Spiller interface.
///
@@ -50,8 +46,9 @@ namespace llvm {
};
/// Create and return a spiller object, as specified on the command line.
- Spiller* createSpiller(MachineFunction *mf, LiveIntervals *li,
- MachineLoopInfo *loopInfo, VirtRegMap *vrm);
+ Spiller* createSpiller(MachineFunctionPass &pass,
+ MachineFunction &mf,
+ VirtRegMap &vrm);
}
#endif
OpenPOWER on IntegriCloud