summaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-03-03 20:01:52 +0000
committerJim Grosbach <grosbach@apple.com>2011-03-03 20:01:52 +0000
commit0f657b156f3d0890584bedda7294932a20b2ea16 (patch)
tree602a6175e69e657edca9118dc66e77417e4f9d84 /include/llvm
parent24b17c673076af1bb77dd24096c8d17c734c94bc (diff)
downloadllvm-0f657b156f3d0890584bedda7294932a20b2ea16.tar.gz
llvm-0f657b156f3d0890584bedda7294932a20b2ea16.tar.bz2
llvm-0f657b156f3d0890584bedda7294932a20b2ea16.tar.xz
Allow a target to choose whether to prefer the scavenger emergency spill slot
be next to the frame pointer or the stack pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126956 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Target/TargetRegisterInfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h
index 121091c9b4..af10748ef4 100644
--- a/include/llvm/Target/TargetRegisterInfo.h
+++ b/include/llvm/Target/TargetRegisterInfo.h
@@ -631,6 +631,13 @@ public:
return false;
}
+ /// useFPForScavengingIndex - returns true if the target wants to use
+ /// frame pointer based accesses to spill to the scavenger emergency spill
+ /// slot.
+ virtual bool useFPForScavengingIndex(const MachineFunction &MF) const {
+ return true;
+ }
+
/// requiresFrameIndexScavenging - returns true if the target requires post
/// PEI scavenging of registers for materializing frame index constants.
virtual bool requiresFrameIndexScavenging(const MachineFunction &MF) const {