mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-08 03:18:19 +00:00
[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:
@@ -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();
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user