diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-09-21 01:08:16 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-09-21 01:08:16 +0000 |
commit | 0fdf3b029b35f495d7261fe78737e434edc84758 (patch) | |
tree | 8914d4f87445f1ad2a0fe0c8c30bdd359bcc6616 /lib/Target/Mips/Mips16FrameLowering.h | |
parent | 3ca380d8d772b33f3fdb830c41838826a19da3db (diff) | |
download | external_llvm-0fdf3b029b35f495d7261fe78737e434edc84758.zip external_llvm-0fdf3b029b35f495d7261fe78737e434edc84758.tar.gz external_llvm-0fdf3b029b35f495d7261fe78737e434edc84758.tar.bz2 |
Properly save and restore RA and Mips16 callee save registers S0,S1
Patch by Reed Kotler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/Mips16FrameLowering.h')
-rw-r--r-- | lib/Target/Mips/Mips16FrameLowering.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/Mips/Mips16FrameLowering.h b/lib/Target/Mips/Mips16FrameLowering.h index 25cc37b..01db71e 100644 --- a/lib/Target/Mips/Mips16FrameLowering.h +++ b/lib/Target/Mips/Mips16FrameLowering.h @@ -32,6 +32,11 @@ 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; + bool hasReservedCallFrame(const MachineFunction &MF) const; void processFunctionBeforeCalleeSavedScan(MachineFunction &MF, |