Lines Matching refs:Idx2
128 unsigned Idx2) const { in commuteInstructionImpl()
136 unsigned CommutableOpIdx2 = Idx2; (void)CommutableOpIdx2; in commuteInstructionImpl()
138 CommutableOpIdx1 == Idx1 && CommutableOpIdx2 == Idx2 && in commuteInstructionImpl()
140 assert(MI.getOperand(Idx1).isReg() && MI.getOperand(Idx2).isReg() && in commuteInstructionImpl()
145 unsigned Reg2 = MI.getOperand(Idx2).getReg(); in commuteInstructionImpl()
148 unsigned SubReg2 = MI.getOperand(Idx2).getSubReg(); in commuteInstructionImpl()
150 bool Reg2IsKill = MI.getOperand(Idx2).isKill(); in commuteInstructionImpl()
152 bool Reg2IsUndef = MI.getOperand(Idx2).isUndef(); in commuteInstructionImpl()
154 bool Reg2IsInternal = MI.getOperand(Idx2).isInternalRead(); in commuteInstructionImpl()
163 MI.getDesc().getOperandConstraint(Idx2, MCOI::TIED_TO) == 0) { in commuteInstructionImpl()
182 CommutedMI->getOperand(Idx2).setReg(Reg1); in commuteInstructionImpl()
184 CommutedMI->getOperand(Idx2).setSubReg(SubReg1); in commuteInstructionImpl()
186 CommutedMI->getOperand(Idx2).setIsKill(Reg1IsKill); in commuteInstructionImpl()
188 CommutedMI->getOperand(Idx2).setIsUndef(Reg1IsUndef); in commuteInstructionImpl()
190 CommutedMI->getOperand(Idx2).setIsInternalRead(Reg1IsInternal); in commuteInstructionImpl()