diff options
author | Tilmann Scheller <tilmann.scheller@googlemail.com> | 2009-09-27 17:58:47 +0000 |
---|---|---|
committer | Tilmann Scheller <tilmann.scheller@googlemail.com> | 2009-09-27 17:58:47 +0000 |
commit | 4c2770bd33b6ce5587a1226d52a77a2ad5a3f345 (patch) | |
tree | b99ee6bc2a76fce756eab06a9564d6f1c53de185 /include | |
parent | 2a918d684b96d027630a6b65cc61a7dace0d8fd1 (diff) | |
download | external_llvm-4c2770bd33b6ce5587a1226d52a77a2ad5a3f345.zip external_llvm-4c2770bd33b6ce5587a1226d52a77a2ad5a3f345.tar.gz external_llvm-4c2770bd33b6ce5587a1226d52a77a2ad5a3f345.tar.bz2 |
Use explicit structs instead of std::pair to map callee saved regs to spill slots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetFrameInfo.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetFrameInfo.h b/include/llvm/Target/TargetFrameInfo.h index afc3fb1..975d156 100644 --- a/include/llvm/Target/TargetFrameInfo.h +++ b/include/llvm/Target/TargetFrameInfo.h @@ -31,6 +31,12 @@ public: StackGrowsUp, // Adding to the stack increases the stack address StackGrowsDown // Adding to the stack decreases the stack address }; + + // Maps a callee saved register to a stack slot with a fixed offset. + struct SpillSlot { + unsigned Reg; + int Offset; // Offset relative to stack pointer on function entry. + }; private: StackDirection StackDir; unsigned StackAlignment; @@ -76,10 +82,10 @@ public: /// /// Each entry in this array contains a <register,offset> pair, indicating the /// fixed offset from the incoming stack pointer that each register should be - /// spilled at. If a register is not listed here, the code generator is + /// spilled at. If a register is not listed here, the code generator is /// allowed to spill it anywhere it chooses. /// - virtual const std::pair<unsigned, int> * + virtual const SpillSlot * getCalleeSavedSpillSlots(unsigned &NumEntries) const { NumEntries = 0; return 0; |