diff options
| author | Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> | 2015-06-02 13:14:46 +0000 |
|---|---|---|
| committer | Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> | 2015-06-02 13:14:46 +0000 |
| commit | bb698c7d5f23474930fae702ac44ee5ab8e03781 (patch) | |
| tree | 396c2a5e09d20a93b4c77957e1729d864a3094df /llvm/lib/Target/Mips/MipsRegisterInfo.h | |
| parent | e62307421053f527e2837e7a4d1d3c246b39303f (diff) | |
| download | bcm5719-llvm-bb698c7d5f23474930fae702ac44ee5ab8e03781.tar.gz bcm5719-llvm-bb698c7d5f23474930fae702ac44ee5ab8e03781.zip | |
[mips] Add support for dynamic stack realignment.
Summary:
With this change we are able to realign the stack dynamically, whenever it
contains objects with alignment requirements that are larger than the
alignment specified from the given ABI.
We have to use the $fp register as the frame pointer when we perform
dynamic stack realignment. In complex stack frames, with variably-sized
objects, we reserve additionally the callee-saved register $s7 as the
base pointer in order to reference locals.
Reviewers: dsanders
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D8633
llvm-svn: 238829
Diffstat (limited to 'llvm/lib/Target/Mips/MipsRegisterInfo.h')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsRegisterInfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsRegisterInfo.h b/llvm/lib/Target/Mips/MipsRegisterInfo.h index 76e84bd142b..ee1f6bcd739 100644 --- a/llvm/lib/Target/Mips/MipsRegisterInfo.h +++ b/llvm/lib/Target/Mips/MipsRegisterInfo.h @@ -57,6 +57,14 @@ public: int SPAdj, unsigned FIOperandNum, RegScavenger *RS = nullptr) const override; + void processFunctionBeforeFrameFinalized(MachineFunction &MF, + RegScavenger *RS = nullptr) const; + + // Stack realignment queries. + bool canRealignStack(const MachineFunction &MF) const; + + bool needsStackRealignment(const MachineFunction &MF) const override; + /// Debug information queries. unsigned getFrameRegister(const MachineFunction &MF) const override; |

