summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMBaseRegisterInfo.h
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-08-18 17:57:37 +0000
committerJim Grosbach <grosbach@apple.com>2010-08-18 17:57:37 +0000
commit74d803a58c7935c067397bb19afc05ec464d8159 (patch)
tree5a5c144b511d1e15d1d757bd50c721de7c9a2c63 /lib/Target/ARM/ARMBaseRegisterInfo.h
parent18cde6df91a33d62a334002a7b608917c07791e8 (diff)
downloadllvm-74d803a58c7935c067397bb19afc05ec464d8159.tar.gz
llvm-74d803a58c7935c067397bb19afc05ec464d8159.tar.bz2
llvm-74d803a58c7935c067397bb19afc05ec464d8159.tar.xz
Add hook for re-using virtual base registers for local stack slot access.
Nothing fancy, just ask the target if any currently available base reg is in range for the instruction under consideration and use the first one that is. Placeholder ARM implementation simply returns false for now. ongoing saga of rdar://8277890 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseRegisterInfo.h')
-rw-r--r--lib/Target/ARM/ARMBaseRegisterInfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMBaseRegisterInfo.h b/lib/Target/ARM/ARMBaseRegisterInfo.h
index 7570d1fd16..716c91d9ad 100644
--- a/lib/Target/ARM/ARMBaseRegisterInfo.h
+++ b/lib/Target/ARM/ARMBaseRegisterInfo.h
@@ -110,6 +110,8 @@ public:
unsigned BaseReg, int FrameIdx) const;
void resolveFrameIndex(MachineBasicBlock::iterator I,
unsigned BaseReg, int64_t Offset) const;
+ bool isBaseRegInRange(const MachineInstr *MI, unsigned Reg,
+ int64_t Offset) const;
bool cannotEliminateFrame(const MachineFunction &MF) const;