diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-08-19 23:52:25 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-08-19 23:52:25 +0000 |
commit | 56e56323c86ec9a1342db93c6a151e69f369212a (patch) | |
tree | c6ad6c5eced7fc0bd8904ec45211e4885a65c623 /llvm/lib/Target/ARM/ARMBaseRegisterInfo.h | |
parent | b3774b5c1e10f04df491a716d6d7cb658351c240 (diff) | |
download | bcm5719-llvm-56e56323c86ec9a1342db93c6a151e69f369212a.tar.gz bcm5719-llvm-56e56323c86ec9a1342db93c6a151e69f369212a.zip |
Better handling of offsets on frame index references. rdar://8277890
llvm-svn: 111585
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBaseRegisterInfo.h')
-rw-r--r-- | llvm/lib/Target/ARM/ARMBaseRegisterInfo.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.h b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.h index 716c91d9ad0..afd43eaeb36 100644 --- a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.h +++ b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.h @@ -105,13 +105,14 @@ public: bool canRealignStack(const MachineFunction &MF) const; bool needsStackRealignment(const MachineFunction &MF) const; + int64_t getFrameIndexInstrOffset(MachineInstr *MI, int Idx) const; bool needsFrameBaseReg(MachineInstr *MI, unsigned operand) const; void materializeFrameBaseRegister(MachineBasicBlock::iterator I, - unsigned BaseReg, int FrameIdx) const; + unsigned BaseReg, int FrameIdx, + int64_t Offset) const; void resolveFrameIndex(MachineBasicBlock::iterator I, unsigned BaseReg, int64_t Offset) const; - bool isBaseRegInRange(const MachineInstr *MI, unsigned Reg, - int64_t Offset) const; + bool isFrameOffsetLegal(const MachineInstr *MI, int64_t Offset) const; bool cannotEliminateFrame(const MachineFunction &MF) const; |