diff options
author | Akira Hatanaka <ahatanak@gmail.com> | 2011-05-20 20:11:17 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanak@gmail.com> | 2011-05-20 20:11:17 +0000 |
commit | 6ffbf82e22a61dc102b214bd7e7ab4b938d4f2d2 (patch) | |
tree | 179d2bc1df4b373de5cc029521e811fbbe908547 /lib/Target/Mips/MipsMachineFunction.h | |
parent | b8adb8af0fa9d1405fcf2edb95f4b1b8d1904716 (diff) | |
download | external_llvm-6ffbf82e22a61dc102b214bd7e7ab4b938d4f2d2.zip external_llvm-6ffbf82e22a61dc102b214bd7e7ab4b938d4f2d2.tar.gz external_llvm-6ffbf82e22a61dc102b214bd7e7ab4b938d4f2d2.tar.bz2 |
Define functions that get/set maximum call frame size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsMachineFunction.h')
-rw-r--r-- | lib/Target/Mips/MipsMachineFunction.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsMachineFunction.h b/lib/Target/Mips/MipsMachineFunction.h index c4d2cfe..3f6b670 100644 --- a/lib/Target/Mips/MipsMachineFunction.h +++ b/lib/Target/Mips/MipsMachineFunction.h @@ -84,13 +84,15 @@ private: std::pair<int, int> InArgFIRange, OutArgFIRange; int GPFI; // Index of the frame object for restoring $gp bool HasCall; // True if function has a function call. + int MaxCallFrameSize; public: MipsFunctionInfo(MachineFunction& MF) : CPUTopSavedRegOff(0), FPUTopSavedRegOff(0), GPHolder(-1,-1), HasLoadArgs(false), HasStoreVarArgs(false), SRetReturnReg(0), GlobalBaseReg(0), VarArgsFrameIndex(0), InArgFIRange(std::make_pair(-1, 0)), - OutArgFIRange(std::make_pair(-1, 0)), GPFI(0), HasCall(false) + OutArgFIRange(std::make_pair(-1, 0)), GPFI(0), HasCall(false), + MaxCallFrameSize(-1) {} int getCPUTopSavedRegOff() const { return CPUTopSavedRegOff; } @@ -155,6 +157,9 @@ public: bool hasCall() const { return HasCall; } void setHasCall() { HasCall = true; } + + int getMaxCallFrameSize() const { return MaxCallFrameSize; } + void setMaxCallFrameSize(int S) { MaxCallFrameSize = S; } }; } // end of namespace llvm |