reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
3412 MachineOperand MOp1 = MI.getOperand(MinOp); 3413 MachineOperand MOp2 = MI.getOperand(MaxOp); 3414 MI.RemoveOperand(std::max(Op1, Op2)); 3415 MI.RemoveOperand(std::min(Op1, Op2)); 3419 if (MaxOp - MinOp == 1 && MI.getNumOperands() == MinOp) { 3420 MI.addOperand(MOp2); 3421 MI.addOperand(MOp1); 3426 unsigned TotalOps = MI.getNumOperands() + 2; // We've already removed 2 ops. 3427 for (unsigned i = MI.getNumOperands() - 1; i >= MinOp; i--) { 3428 MOps.push_back(MI.getOperand(i)); 3429 MI.RemoveOperand(i); 3432 MI.addOperand(MOp2); 3434 for (unsigned i = MI.getNumOperands(); i < TotalOps; i++) { 3436 MI.addOperand(MOp1); 3438 MI.addOperand(MOps.back());