diff options
author | Lang Hames <lhames@gmail.com> | 2009-11-19 04:15:33 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2009-11-19 04:15:33 +0000 |
commit | 6912be4ad628e4d1cdf9747e8f6ae46259536cf7 (patch) | |
tree | 8c9d03acc67e9eb02be5f409cdb6c7e0d26f48f3 /llvm/lib/CodeGen/Spiller.h | |
parent | 8c00957008a7fa0cea3e8c1e66a134140442f99a (diff) | |
download | bcm5719-llvm-6912be4ad628e4d1cdf9747e8f6ae46259536cf7.tar.gz bcm5719-llvm-6912be4ad628e4d1cdf9747e8f6ae46259536cf7.zip |
Added a new Spiller implementation which wraps LiveIntervals::addIntervalsForSpills.
All spiller calls in RegAllocLinearScan now go through the new Spiller interface.
The "-new-spill-framework" command line option has been removed. To use the trivial in-place spiller you should now pass "-spiller=trivial -rewriter=trivial".
(Note the trivial spiller/rewriter are only meant to serve as examples of the new in-place modification work. Enabling them will yield terrible, though hopefully functional, code).
llvm-svn: 89311
Diffstat (limited to 'llvm/lib/CodeGen/Spiller.h')
-rw-r--r-- | llvm/lib/CodeGen/Spiller.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/Spiller.h b/llvm/lib/CodeGen/Spiller.h index 8abf9b517c8..7ec8e6d7ffb 100644 --- a/llvm/lib/CodeGen/Spiller.h +++ b/llvm/lib/CodeGen/Spiller.h @@ -10,6 +10,7 @@ #ifndef LLVM_CODEGEN_SPILLER_H #define LLVM_CODEGEN_SPILLER_H +#include "llvm/ADT/SmallVector.h" #include <vector> namespace llvm { @@ -19,6 +20,7 @@ namespace llvm { class LiveStacks; class MachineFunction; class MachineInstr; + class MachineLoopInfo; class VirtRegMap; class VNInfo; @@ -32,13 +34,15 @@ namespace llvm { /// Spill the given live range. The method used will depend on the Spiller /// implementation selected. - virtual std::vector<LiveInterval*> spill(LiveInterval *li) = 0; + virtual std::vector<LiveInterval*> spill(LiveInterval *li, + SmallVectorImpl<LiveInterval*> &spillIs) = 0; }; /// Create and return a spiller object, as specified on the command line. Spiller* createSpiller(MachineFunction *mf, LiveIntervals *li, - LiveStacks *ls, VirtRegMap *vrm); + LiveStacks *ls, const MachineLoopInfo *loopInfo, + VirtRegMap *vrm); } #endif |