[llvm-commits] [llvm] r143992 - /llvm/trunk/lib/Target/Mips/MipsMachineFunction.h
Akira Hatanaka
ahatanaka at mips.com
Mon Nov 7 11:06:10 PST 2011
Author: ahatanak
Date: Mon Nov 7 13:06:10 2011
New Revision: 143992
URL: http://llvm.org/viewvc/llvm-project?rev=143992&view=rev
Log:
Define functions that get or set the size of area on callee's stack frame which
is used to save va_arg or byval arguments passed in registers.
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=143992&r1=143991&r2=143992&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsMachineFunction.h (original)
+++ llvm/trunk/lib/Target/Mips/MipsMachineFunction.h Mon Nov 7 13:06:10 2011
@@ -51,12 +51,16 @@
mutable int DynAllocFI; // Frame index of dynamically allocated stack area.
unsigned MaxCallFrameSize;
+ // Size of area on callee's stack frame which is used to save va_arg or
+ // byval arguments passed in registers.
+ unsigned RegSaveAreaSize;
+
public:
MipsFunctionInfo(MachineFunction& MF)
: MF(MF), SRetReturnReg(0), GlobalBaseReg(0),
VarArgsFrameIndex(0), InArgFIRange(std::make_pair(-1, 0)),
OutArgFIRange(std::make_pair(-1, 0)), GPFI(0), DynAllocFI(0),
- MaxCallFrameSize(0)
+ MaxCallFrameSize(0), RegSaveAreaSize(0)
{}
bool isInArgFI(int FI) const {
@@ -100,6 +104,11 @@
unsigned getMaxCallFrameSize() const { return MaxCallFrameSize; }
void setMaxCallFrameSize(unsigned S) { MaxCallFrameSize = S; }
+
+ unsigned getRegSaveAreaSize() const { return RegSaveAreaSize; }
+ void setRegSaveAreaSize(unsigned S) {
+ if (RegSaveAreaSize < S) RegSaveAreaSize = S;
+ }
};
} // end of namespace llvm
More information about the llvm-commits
mailing list