summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMBaseRegisterInfo.h
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-08-19 23:52:25 +0000
committerJim Grosbach <grosbach@apple.com>2010-08-19 23:52:25 +0000
commite2f556933e1a19cddf6d4f370e2770c0f763b025 (patch)
tree5dd6b09fab81ed02643c883b33e9e06c2acceaa3 /lib/Target/ARM/ARMBaseRegisterInfo.h
parentb08ceb8135daf015dc38f9d9048cb075215da383 (diff)
downloadllvm-e2f556933e1a19cddf6d4f370e2770c0f763b025.tar.gz
llvm-e2f556933e1a19cddf6d4f370e2770c0f763b025.tar.bz2
llvm-e2f556933e1a19cddf6d4f370e2770c0f763b025.tar.xz
Better handling of offsets on frame index references. rdar://8277890
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111585 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseRegisterInfo.h')
-rw-r--r--lib/Target/ARM/ARMBaseRegisterInfo.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMBaseRegisterInfo.h b/lib/Target/ARM/ARMBaseRegisterInfo.h
index 716c91d9ad..afd43eaeb3 100644
--- a/lib/Target/ARM/ARMBaseRegisterInfo.h
+++ b/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;