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 | dd420e060accd1d773c731e77335cff65ca34013 (patch) | |
tree | e6867745c018e3492508920468b993ec30c5ac99 /lib/CodeGen/VirtRegMap.h | |
parent | 5f37502bfbadfa65de087627bd67fd58bb03725c (diff) | |
download | external_llvm-dd420e060accd1d773c731e77335cff65ca34013.zip external_llvm-dd420e060accd1d773c731e77335cff65ca34013.tar.gz external_llvm-dd420e060accd1d773c731e77335cff65ca34013.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.h')
-rw-r--r-- | lib/CodeGen/VirtRegMap.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/CodeGen/VirtRegMap.h b/lib/CodeGen/VirtRegMap.h index 90cc44d..3c2f8ee 100644 --- a/lib/CodeGen/VirtRegMap.h +++ b/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 |