diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-12 19:01:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-12 19:01:55 +0000 |
commit | 09431e187f9abd45af08461df728204ee9731fd7 (patch) | |
tree | b7da068142709c983c96f7ad2bede3ef08c13e17 /include/llvm/Target | |
parent | c330b68fb7f1cb7f05a60ab4d811bba397538840 (diff) | |
download | external_llvm-09431e187f9abd45af08461df728204ee9731fd7.zip external_llvm-09431e187f9abd45af08461df728204ee9731fd7.tar.gz external_llvm-09431e187f9abd45af08461df728204ee9731fd7.tar.bz2 |
Allow targets to specify particular stack slots that certain physregs must
be spilled into.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetFrameInfo.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetFrameInfo.h b/include/llvm/Target/TargetFrameInfo.h index a85cd87..c727561 100644 --- a/include/llvm/Target/TargetFrameInfo.h +++ b/include/llvm/Target/TargetFrameInfo.h @@ -14,6 +14,8 @@ #ifndef LLVM_TARGET_TARGETFRAMEINFO_H #define LLVM_TARGET_TARGETFRAMEINFO_H +#include <utility> + namespace llvm { class MachineFunction; @@ -56,6 +58,21 @@ public: /// int getOffsetOfLocalArea() const { return LocalAreaOffset; } + /// getCalleeSaveSpillSlots - This method returns a pointer to an array of + /// pairs, that contains an entry for each callee save register that must be + /// spilled to a particular stack location if it is spilled. + /// + /// 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 + /// allowed to spill it anywhere it chooses. + /// + virtual std::pair<unsigned, int> * + getCalleeSaveSpillSlots(unsigned &NumEntries) const { + NumEntries = 0; + return 0; + } + //===--------------------------------------------------------------------===// // These methods provide details of the stack frame used by Sparc, thus they // are Sparc specific. |