diff options
author | Eric Christopher <echristo@apple.com> | 2010-11-18 19:40:05 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-11-18 19:40:05 +0000 |
commit | 8b3ca6216d62bf3f729c2e122dcfeb7c4d7500dc (patch) | |
tree | 262f781c67f1e51596bb314659ad97093d142d97 /lib/Target/ARM/ARMBaseInstrInfo.h | |
parent | 9fe010ecf885b82ca16c3f1e3caf72b9823377f3 (diff) | |
download | llvm-8b3ca6216d62bf3f729c2e122dcfeb7c4d7500dc.tar.gz llvm-8b3ca6216d62bf3f729c2e122dcfeb7c4d7500dc.tar.bz2 llvm-8b3ca6216d62bf3f729c2e122dcfeb7c4d7500dc.tar.xz |
Rewrite stack callee saved spills and restores to use push/pop instructions.
Remove movePastCSLoadStoreOps and associated code for simple pointer
increments. Update routines that depended upon other opcodes for save/restore.
Adjust all testcases accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119725 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseInstrInfo.h')
-rw-r--r-- | lib/Target/ARM/ARMBaseInstrInfo.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMBaseInstrInfo.h b/lib/Target/ARM/ARMBaseInstrInfo.h index cbcc428b71..5e7156c9ce 100644 --- a/lib/Target/ARM/ARMBaseInstrInfo.h +++ b/lib/Target/ARM/ARMBaseInstrInfo.h @@ -211,6 +211,21 @@ public: const std::vector<CalleeSavedInfo> &CSI, const TargetRegisterInfo *TRI) const; + bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB, + MachineBasicBlock::iterator MI, + const std::vector<CalleeSavedInfo> &CSI, + const TargetRegisterInfo *TRI) const; + +private: + void emitPopInst(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, + const std::vector<CalleeSavedInfo> &CSI, unsigned Opc, + bool isVarArg, bool(*Func)(unsigned, bool)) const; + void emitPushInst(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, + const std::vector<CalleeSavedInfo> &CSI, unsigned Opc, + bool(*Func)(unsigned, bool)) const; + + +public: // Branch analysis. virtual bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, |