[llvm-commits] [llvm] r131752 - /llvm/trunk/lib/Target/Mips/MipsMachineFunction.h
Akira Hatanaka
ahatanak at gmail.com
Fri May 20 13:11:18 PDT 2011
Author: ahatanak
Date: Fri May 20 15:11:17 2011
New Revision: 131752
URL: http://llvm.org/viewvc/llvm-project?rev=131752&view=rev
Log:
Define functions that get/set maximum call frame size.
Modified:
llvm/trunk/lib/Target/Mips/MipsMachineFunction.h
Modified: llvm/trunk/lib/Target/Mips/MipsMachineFunction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsMachineFunction.h?rev=131752&r1=131751&r2=131752&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsMachineFunction.h (original)
+++ llvm/trunk/lib/Target/Mips/MipsMachineFunction.h Fri May 20 15:11:17 2011
@@ -84,13 +84,15 @@
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 @@
bool hasCall() const { return HasCall; }
void setHasCall() { HasCall = true; }
+
+ int getMaxCallFrameSize() const { return MaxCallFrameSize; }
+ void setMaxCallFrameSize(int S) { MaxCallFrameSize = S; }
};
} // end of namespace llvm
More information about the llvm-commits
mailing list