llvm.org GIT mirror llvm / cfe761c
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 Daniel Sanders 5 years ago
3 changed file(s) with 15 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
216216 // while "%t" goes to the stack: it wouldn't be described in ByValRegs.
217217 //
218218 // Supposed use-case for this collection:
219 // 1. Initially ByValRegs is empty, InRegsParamsProceed is 0.
219 // 1. Initially ByValRegs is empty, InRegsParamsProcessed is 0.
220220 // 2. HandleByVal fillups ByValRegs.
221221 // 3. Argument analysis (LowerFormatArguments, for example). After
222 // some byval argument was analyzed, InRegsParamsProceed is increased.
222 // some byval argument was analyzed, InRegsParamsProcessed is increased.
223223 struct ByValInfo {
224224 ByValInfo(unsigned B, unsigned E, bool IsWaste = false) :
225225 Begin(B), End(E), Waste(IsWaste) {}
237237 };
238238 SmallVector ByValRegs;
239239
240 // InRegsParamsProceed - shows how many instances of ByValRegs was proceed
240 // InRegsParamsProcessed - shows how many instances of ByValRegs was proceed
241241 // during argument analysis.
242 unsigned InRegsParamsProceed;
242 unsigned InRegsParamsProcessed;
243243
244244 protected:
245245 ParmContext CallOrPrologue;
418418 unsigned getInRegsParamsCount() const { return ByValRegs.size(); }
419419
420420 // Returns count of byval in-regs arguments proceed.
421 unsigned getInRegsParamsProceed() const { return InRegsParamsProceed; }
421 unsigned getInRegsParamsProcessed() const { return InRegsParamsProcessed; }
422422
423423 // Get information about N-th byval parameter that is stored in registers.
424424 // Here "ByValParamIndex" is N.
442442 // Returns false, if end is reached.
443443 bool nextInRegsParam() {
444444 unsigned e = ByValRegs.size();
445 if (InRegsParamsProceed < e)
446 ++InRegsParamsProceed;
447 return InRegsParamsProceed < e;
445 if (InRegsParamsProcessed < e)
446 ++InRegsParamsProcessed;
447 return InRegsParamsProcessed < e;
448448 }
449449
450450 // Clear byval registers tracking info.
451451 void clearByValRegsInfo() {
452 InRegsParamsProceed = 0;
452 InRegsParamsProcessed = 0;
453453 ByValRegs.clear();
454454 }
455455
456456 // Rewind byval registers tracking info.
457457 void rewindByValRegsInfo() {
458 InRegsParamsProceed = 0;
458 InRegsParamsProcessed = 0;
459459 }
460460
461461 ParmContext getCallOrPrologue() const { return CallOrPrologue; }
15891589 // True if this byval aggregate will be split between registers
15901590 // and memory.
15911591 unsigned ByValArgsCount = CCInfo.getInRegsParamsCount();
1592 unsigned CurByValIdx = CCInfo.getInRegsParamsProceed();
1592 unsigned CurByValIdx = CCInfo.getInRegsParamsProcessed();
15931593
15941594 if (CurByValIdx < ByValArgsCount) {
15951595
30653065 if (Flags.isByVal()) {
30663066 unsigned ExtraArgRegsSize;
30673067 unsigned ExtraArgRegsSaveSize;
3068 computeRegArea(CCInfo, MF, CCInfo.getInRegsParamsProceed(),
3068 computeRegArea(CCInfo, MF, CCInfo.getInRegsParamsProcessed(),
30693069 Flags.getByValSize(),
30703070 ExtraArgRegsSize, ExtraArgRegsSaveSize);
30713071
31893189 // Since they could be overwritten by lowering of arguments in case of
31903190 // a tail call.
31913191 if (Flags.isByVal()) {
3192 unsigned CurByValIndex = CCInfo.getInRegsParamsProceed();
3192 unsigned CurByValIndex = CCInfo.getInRegsParamsProcessed();
31933193
31943194 ByValStoreOffset = RoundUpToAlignment(ByValStoreOffset, Flags.getByValAlign());
31953195 int FrameIndex = StoreByValRegs(
26402640 // ByVal Arg.
26412641 if (Flags.isByVal()) {
26422642 unsigned FirstByValReg, LastByValReg;
2643 unsigned ByValIdx = CCInfo.getInRegsParamsProceed();
2643 unsigned ByValIdx = CCInfo.getInRegsParamsProcessed();
26442644 CCInfo.getInRegsParamInfo(ByValIdx, FirstByValReg, LastByValReg);
26452645
26462646 assert(Flags.getByValSize() &&
29052905
29062906 if (Flags.isByVal()) {
29072907 unsigned FirstByValReg, LastByValReg;
2908 unsigned ByValIdx = CCInfo.getInRegsParamsProceed();
2908 unsigned ByValIdx = CCInfo.getInRegsParamsProcessed();
29092909 CCInfo.getInRegsParamInfo(ByValIdx, FirstByValReg, LastByValReg);
29102910
29112911 assert(Flags.getByValSize() &&