Lines Matching refs:Idx1
127 bool NewMI, unsigned Idx1, in commuteInstructionImpl() argument
135 unsigned CommutableOpIdx1 = Idx1; (void)CommutableOpIdx1; in commuteInstructionImpl()
138 CommutableOpIdx1 == Idx1 && CommutableOpIdx2 == Idx2 && in commuteInstructionImpl()
140 assert(MI.getOperand(Idx1).isReg() && MI.getOperand(Idx2).isReg() && in commuteInstructionImpl()
144 unsigned Reg1 = MI.getOperand(Idx1).getReg(); in commuteInstructionImpl()
147 unsigned SubReg1 = MI.getOperand(Idx1).getSubReg(); in commuteInstructionImpl()
149 bool Reg1IsKill = MI.getOperand(Idx1).isKill(); in commuteInstructionImpl()
151 bool Reg1IsUndef = MI.getOperand(Idx1).isUndef(); in commuteInstructionImpl()
153 bool Reg1IsInternal = MI.getOperand(Idx1).isInternalRead(); in commuteInstructionImpl()
158 MI.getDesc().getOperandConstraint(Idx1, MCOI::TIED_TO) == 0) { in commuteInstructionImpl()
183 CommutedMI->getOperand(Idx1).setReg(Reg2); in commuteInstructionImpl()
185 CommutedMI->getOperand(Idx1).setSubReg(SubReg2); in commuteInstructionImpl()
187 CommutedMI->getOperand(Idx1).setIsKill(Reg2IsKill); in commuteInstructionImpl()
189 CommutedMI->getOperand(Idx1).setIsUndef(Reg2IsUndef); in commuteInstructionImpl()
191 CommutedMI->getOperand(Idx1).setIsInternalRead(Reg2IsInternal); in commuteInstructionImpl()