diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-03-01 23:18:15 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-03-01 23:18:15 +0000 |
commit | 31953c7a10124fc950aadb180ff54f0a97610e54 (patch) | |
tree | 5b815d7985f8d40f6c6df2d4c84fab6f0f0b41e2 /llvm/lib/CodeGen/VirtRegMap.h | |
parent | b76d234ee930bd94fe3401003ffb0d4a70688cb1 (diff) | |
download | bcm5719-llvm-31953c7a10124fc950aadb180ff54f0a97610e54.tar.gz bcm5719-llvm-31953c7a10124fc950aadb180ff54f0a97610e54.zip |
Add a spiller option to llc. A simple spiller will come soon. When we get CFG in the machine code represenation a global spiller will also be possible. Also document the linear scan register allocator but mark it as experimental for now.
llvm-svn: 12062
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegMap.h')
-rw-r--r-- | llvm/lib/CodeGen/VirtRegMap.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.h b/llvm/lib/CodeGen/VirtRegMap.h index 90cc44d31c4..3c2f8eec4ad 100644 --- a/llvm/lib/CodeGen/VirtRegMap.h +++ b/llvm/lib/CodeGen/VirtRegMap.h @@ -108,7 +108,14 @@ namespace llvm { std::ostream& operator<<(std::ostream& os, const VirtRegMap& li); - void eliminateVirtRegs(MachineFunction& mf, const VirtRegMap& vrm); + struct Spiller { + virtual ~Spiller(); + + virtual bool runOnMachineFunction(MachineFunction& mf, const VirtRegMap& vrm) = 0; + + }; + + Spiller* createSpiller(); } // End llvm namespace |