mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-01 07:30:31 +00:00
Renamed CCState members that appear to misspell 'Processed' as 'Proceed'. NFC.
Reviewers: rnk Reviewed By: rnk Subscribers: rnk, llvm-commits Differential Revision: http://reviews.llvm.org/D5978 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b2dae39d05
commit
cfe761c9e6
@ -217,10 +217,10 @@ private:
|
||||
// while "%t" goes to the stack: it wouldn't be described in ByValRegs.
|
||||
//
|
||||
// Supposed use-case for this collection:
|
||||
// 1. Initially ByValRegs is empty, InRegsParamsProceed is 0.
|
||||
// 1. Initially ByValRegs is empty, InRegsParamsProcessed is 0.
|
||||
// 2. HandleByVal fillups ByValRegs.
|
||||
// 3. Argument analysis (LowerFormatArguments, for example). After
|
||||
// some byval argument was analyzed, InRegsParamsProceed is increased.
|
||||
// some byval argument was analyzed, InRegsParamsProcessed is increased.
|
||||
struct ByValInfo {
|
||||
ByValInfo(unsigned B, unsigned E, bool IsWaste = false) :
|
||||
Begin(B), End(E), Waste(IsWaste) {}
|
||||
@ -238,9 +238,9 @@ private:
|
||||
};
|
||||
SmallVector<ByValInfo, 4 > ByValRegs;
|
||||
|
||||
// InRegsParamsProceed - shows how many instances of ByValRegs was proceed
|
||||
// InRegsParamsProcessed - shows how many instances of ByValRegs was proceed
|
||||
// during argument analysis.
|
||||
unsigned InRegsParamsProceed;
|
||||
unsigned InRegsParamsProcessed;
|
||||
|
||||
protected:
|
||||
ParmContext CallOrPrologue;
|
||||
@ -419,7 +419,7 @@ public:
|
||||
unsigned getInRegsParamsCount() const { return ByValRegs.size(); }
|
||||
|
||||
// Returns count of byval in-regs arguments proceed.
|
||||
unsigned getInRegsParamsProceed() const { return InRegsParamsProceed; }
|
||||
unsigned getInRegsParamsProcessed() const { return InRegsParamsProcessed; }
|
||||
|
||||
// Get information about N-th byval parameter that is stored in registers.
|
||||
// Here "ByValParamIndex" is N.
|
||||
@ -443,20 +443,20 @@ public:
|
||||
// Returns false, if end is reached.
|
||||
bool nextInRegsParam() {
|
||||
unsigned e = ByValRegs.size();
|
||||
if (InRegsParamsProceed < e)
|
||||
++InRegsParamsProceed;
|
||||
return InRegsParamsProceed < e;
|
||||
if (InRegsParamsProcessed < e)
|
||||
++InRegsParamsProcessed;
|
||||
return InRegsParamsProcessed < e;
|
||||
}
|
||||
|
||||
// Clear byval registers tracking info.
|
||||
void clearByValRegsInfo() {
|
||||
InRegsParamsProceed = 0;
|
||||
InRegsParamsProcessed = 0;
|
||||
ByValRegs.clear();
|
||||
}
|
||||
|
||||
// Rewind byval registers tracking info.
|
||||
void rewindByValRegsInfo() {
|
||||
InRegsParamsProceed = 0;
|
||||
InRegsParamsProcessed = 0;
|
||||
}
|
||||
|
||||
ParmContext getCallOrPrologue() const { return CallOrPrologue; }
|
||||
|
@ -1590,7 +1590,7 @@ ARMTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
|
||||
// True if this byval aggregate will be split between registers
|
||||
// and memory.
|
||||
unsigned ByValArgsCount = CCInfo.getInRegsParamsCount();
|
||||
unsigned CurByValIdx = CCInfo.getInRegsParamsProceed();
|
||||
unsigned CurByValIdx = CCInfo.getInRegsParamsProcessed();
|
||||
|
||||
if (CurByValIdx < ByValArgsCount) {
|
||||
|
||||
@ -3066,7 +3066,7 @@ ARMTargetLowering::LowerFormalArguments(SDValue Chain,
|
||||
if (Flags.isByVal()) {
|
||||
unsigned ExtraArgRegsSize;
|
||||
unsigned ExtraArgRegsSaveSize;
|
||||
computeRegArea(CCInfo, MF, CCInfo.getInRegsParamsProceed(),
|
||||
computeRegArea(CCInfo, MF, CCInfo.getInRegsParamsProcessed(),
|
||||
Flags.getByValSize(),
|
||||
ExtraArgRegsSize, ExtraArgRegsSaveSize);
|
||||
|
||||
@ -3190,7 +3190,7 @@ ARMTargetLowering::LowerFormalArguments(SDValue Chain,
|
||||
// Since they could be overwritten by lowering of arguments in case of
|
||||
// a tail call.
|
||||
if (Flags.isByVal()) {
|
||||
unsigned CurByValIndex = CCInfo.getInRegsParamsProceed();
|
||||
unsigned CurByValIndex = CCInfo.getInRegsParamsProcessed();
|
||||
|
||||
ByValStoreOffset = RoundUpToAlignment(ByValStoreOffset, Flags.getByValAlign());
|
||||
int FrameIndex = StoreByValRegs(
|
||||
|
@ -2641,7 +2641,7 @@ MipsTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
|
||||
// ByVal Arg.
|
||||
if (Flags.isByVal()) {
|
||||
unsigned FirstByValReg, LastByValReg;
|
||||
unsigned ByValIdx = CCInfo.getInRegsParamsProceed();
|
||||
unsigned ByValIdx = CCInfo.getInRegsParamsProcessed();
|
||||
CCInfo.getInRegsParamInfo(ByValIdx, FirstByValReg, LastByValReg);
|
||||
|
||||
assert(Flags.getByValSize() &&
|
||||
@ -2906,7 +2906,7 @@ MipsTargetLowering::LowerFormalArguments(SDValue Chain,
|
||||
|
||||
if (Flags.isByVal()) {
|
||||
unsigned FirstByValReg, LastByValReg;
|
||||
unsigned ByValIdx = CCInfo.getInRegsParamsProceed();
|
||||
unsigned ByValIdx = CCInfo.getInRegsParamsProcessed();
|
||||
CCInfo.getInRegsParamInfo(ByValIdx, FirstByValReg, LastByValReg);
|
||||
|
||||
assert(Flags.getByValSize() &&
|
||||
|
Loading…
Reference in New Issue
Block a user