[mips] Add member field MipsFunctionInfo::IncomingArgSize which holds the size

of the incoming argument area.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167312 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Akira Hatanaka
2012-11-02 21:03:58 +00:00
parent 322ff88345
commit 294166d541
2 changed files with 7 additions and 0 deletions

View File

@@ -3027,6 +3027,7 @@ MipsTargetLowering::LowerFormalArguments(SDValue Chain,
MipsCCInfo.analyzeFormalArguments(Ins); MipsCCInfo.analyzeFormalArguments(Ins);
MipsFI->setFormalArgInfo(CCInfo.getNextStackOffset(), MipsFI->setFormalArgInfo(CCInfo.getNextStackOffset(),
MipsCCInfo.hasByValArg()); MipsCCInfo.hasByValArg());
MipsFI->setIncomingArgSize(CCInfo.getNextStackOffset());
Function::const_arg_iterator FuncArg = Function::const_arg_iterator FuncArg =
DAG.getMachineFunction().getFunction()->arg_begin(); DAG.getMachineFunction().getFunction()->arg_begin();

View File

@@ -51,6 +51,9 @@ class MipsFunctionInfo : public MachineFunctionInfo {
unsigned NextStackOffset; unsigned NextStackOffset;
bool HasByvalArg; bool HasByvalArg;
// Size of incoming argument area.
unsigned IncomingArgSize;
public: public:
MipsFunctionInfo(MachineFunction& MF) MipsFunctionInfo(MachineFunction& MF)
: MF(MF), SRetReturnReg(0), GlobalBaseReg(0), Mips16SPAliasReg(0), : MF(MF), SRetReturnReg(0), GlobalBaseReg(0), Mips16SPAliasReg(0),
@@ -75,6 +78,9 @@ public:
NextStackOffset = Offset; NextStackOffset = Offset;
HasByvalArg = HasByval; HasByvalArg = HasByval;
} }
unsigned getIncomingArgSize() const { return IncomingArgSize; }
void setIncomingArgSize(unsigned S) { IncomingArgSize = S; }
}; };
} // end of namespace llvm } // end of namespace llvm