Lines Matching refs:Idx2
124 unsigned Idx2) const { in commuteInstructionImpl()
132 unsigned CommutableOpIdx2 = Idx2; (void)CommutableOpIdx2; in commuteInstructionImpl()
134 CommutableOpIdx1 == Idx1 && CommutableOpIdx2 == Idx2 && in commuteInstructionImpl()
136 assert(MI->getOperand(Idx1).isReg() && MI->getOperand(Idx2).isReg() && in commuteInstructionImpl()
141 unsigned Reg2 = MI->getOperand(Idx2).getReg(); in commuteInstructionImpl()
144 unsigned SubReg2 = MI->getOperand(Idx2).getSubReg(); in commuteInstructionImpl()
146 bool Reg2IsKill = MI->getOperand(Idx2).isKill(); in commuteInstructionImpl()
148 bool Reg2IsUndef = MI->getOperand(Idx2).isUndef(); in commuteInstructionImpl()
150 bool Reg2IsInternal = MI->getOperand(Idx2).isInternalRead(); in commuteInstructionImpl()
159 MI->getDesc().getOperandConstraint(Idx2, MCOI::TIED_TO) == 0) { in commuteInstructionImpl()
175 MI->getOperand(Idx2).setReg(Reg1); in commuteInstructionImpl()
177 MI->getOperand(Idx2).setSubReg(SubReg1); in commuteInstructionImpl()
179 MI->getOperand(Idx2).setIsKill(Reg1IsKill); in commuteInstructionImpl()
181 MI->getOperand(Idx2).setIsUndef(Reg1IsUndef); in commuteInstructionImpl()
183 MI->getOperand(Idx2).setIsInternalRead(Reg1IsInternal); in commuteInstructionImpl()