Lines Matching refs:CurrentSrcIdx
747 unsigned CurrentSrcIdx; member in __anon2734e12b0211::CopyRewriter
750 CopyRewriter(MachineInstr &MI) : CopyLike(MI), CurrentSrcIdx(0) {} in CopyRewriter()
785 if (!CopyLike.isCopy() || CurrentSrcIdx == 1) in getNextRewritableSource()
789 CurrentSrcIdx = 1; in getNextRewritableSource()
805 if (!CopyLike.isCopy() || CurrentSrcIdx != 1) in RewriteCurrentSource()
807 MachineOperand &MOSrc = CopyLike.getOperand(CurrentSrcIdx); in RewriteCurrentSource()
905 if (CurrentSrcIdx == NumDefs) in getNextRewritableSource()
908 while (CopyLike.getOperand(CurrentSrcIdx).isDead()) { in getNextRewritableSource()
909 ++CurrentSrcIdx; in getNextRewritableSource()
910 if (CurrentSrcIdx == NumDefs) in getNextRewritableSource()
915 const MachineOperand &MODef = CopyLike.getOperand(CurrentSrcIdx); in getNextRewritableSource()
919 CurrentSrcIdx++; in getNextRewritableSource()
987 if (CurrentSrcIdx == 2) in getNextRewritableSource()
990 CurrentSrcIdx = 2; in getNextRewritableSource()
1006 if (CurrentSrcIdx != 2) in RewriteCurrentSource()
1009 MachineOperand &MO = CopyLike.getOperand(CurrentSrcIdx); in RewriteCurrentSource()
1035 if (CurrentSrcIdx == 1) in getNextRewritableSource()
1038 CurrentSrcIdx = 1; in getNextRewritableSource()
1056 if (CurrentSrcIdx != 1) in RewriteCurrentSource()
1059 CopyLike.getOperand(CurrentSrcIdx).setReg(NewReg); in RewriteCurrentSource()
1067 CurrentSrcIdx = -1; in RewriteCurrentSource()
1075 CopyLike.getOperand(CurrentSrcIdx + 1).setImm(NewSubReg); in RewriteCurrentSource()
1109 if (CurrentSrcIdx == 0) { in getNextRewritableSource()
1110 CurrentSrcIdx = 1; in getNextRewritableSource()
1113 CurrentSrcIdx += 2; in getNextRewritableSource()
1114 if (CurrentSrcIdx >= CopyLike.getNumOperands()) in getNextRewritableSource()
1117 const MachineOperand &MOInsertedReg = CopyLike.getOperand(CurrentSrcIdx); in getNextRewritableSource()
1125 TrackSubReg = CopyLike.getOperand(CurrentSrcIdx + 1).getImm(); in getNextRewritableSource()
1136 if ((CurrentSrcIdx & 1) != 1 || CurrentSrcIdx > CopyLike.getNumOperands()) in RewriteCurrentSource()
1139 MachineOperand &MO = CopyLike.getOperand(CurrentSrcIdx); in RewriteCurrentSource()