mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
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
This commit is contained in:
parent
b8adb8af0f
commit
6ffbf82e22
@ -84,13 +84,15 @@ private:
|
|||||||
std::pair<int, int> InArgFIRange, OutArgFIRange;
|
std::pair<int, int> InArgFIRange, OutArgFIRange;
|
||||||
int GPFI; // Index of the frame object for restoring $gp
|
int GPFI; // Index of the frame object for restoring $gp
|
||||||
bool HasCall; // True if function has a function call.
|
bool HasCall; // True if function has a function call.
|
||||||
|
int MaxCallFrameSize;
|
||||||
public:
|
public:
|
||||||
MipsFunctionInfo(MachineFunction& MF)
|
MipsFunctionInfo(MachineFunction& MF)
|
||||||
: CPUTopSavedRegOff(0),
|
: CPUTopSavedRegOff(0),
|
||||||
FPUTopSavedRegOff(0), GPHolder(-1,-1), HasLoadArgs(false),
|
FPUTopSavedRegOff(0), GPHolder(-1,-1), HasLoadArgs(false),
|
||||||
HasStoreVarArgs(false), SRetReturnReg(0), GlobalBaseReg(0),
|
HasStoreVarArgs(false), SRetReturnReg(0), GlobalBaseReg(0),
|
||||||
VarArgsFrameIndex(0), InArgFIRange(std::make_pair(-1, 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; }
|
int getCPUTopSavedRegOff() const { return CPUTopSavedRegOff; }
|
||||||
@ -155,6 +157,9 @@ public:
|
|||||||
|
|
||||||
bool hasCall() const { return HasCall; }
|
bool hasCall() const { return HasCall; }
|
||||||
void setHasCall() { HasCall = true; }
|
void setHasCall() { HasCall = true; }
|
||||||
|
|
||||||
|
int getMaxCallFrameSize() const { return MaxCallFrameSize; }
|
||||||
|
void setMaxCallFrameSize(int S) { MaxCallFrameSize = S; }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end of namespace llvm
|
} // end of namespace llvm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user