diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-08-17 18:13:53 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-08-17 18:13:53 +0000 |
commit | c252ee23752bf777f0ac8e36694c0d88a2d9f36f (patch) | |
tree | 519fcc2926a337d07e643c0bec48af34e0927c94 /llvm/lib/Target/ARM/ARMBaseRegisterInfo.h | |
parent | b1e20869a27fb50cae57ea3904ccdd6cba2ada58 (diff) | |
download | bcm5719-llvm-c252ee23752bf777f0ac8e36694c0d88a2d9f36f.tar.gz bcm5719-llvm-c252ee23752bf777f0ac8e36694c0d88a2d9f36f.zip |
Add hook to examine an instruction referencing a frame index to determine
whether to allocate a virtual frame base register to resolve the frame
index reference in it. Implement a simple version for ARM to aid debugging.
In LocalStackSlotAllocation, scan the function for frame index references
to local frame indices and ask the target whether to allocate virtual
frame base registers for any it encounters. Purely infrastructural for
debug output. Next step is to actually allocate base registers, then add
intelligent re-use of them.
rdar://8277890
llvm-svn: 111262
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBaseRegisterInfo.h')
-rw-r--r-- | llvm/lib/Target/ARM/ARMBaseRegisterInfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.h b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.h index d644ecc1ab0..f3ccfb4cc40 100644 --- a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.h +++ b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.h @@ -105,6 +105,7 @@ public: bool canRealignStack(const MachineFunction &MF) const; bool needsStackRealignment(const MachineFunction &MF) const; + bool needsFrameBaseReg(MachineInstr *MI, unsigned operand) const; bool cannotEliminateFrame(const MachineFunction &MF) const; |