Lines Matching refs:OldMI
391 void updateMemOperands(MachineInstr &NewMI, MachineInstr &OldMI,
393 MachineInstr *cloneInstr(MachineInstr *OldMI, unsigned CurStageNum,
395 MachineInstr *cloneAndChangeInstr(MachineInstr *OldMI, unsigned CurStageNum,
3049 MachineInstr &OldMI, unsigned Num) { in updateMemOperands() argument
3067 if (computeDelta(OldMI, Delta)) { in updateMemOperands()
3079 MachineInstr *SwingSchedulerDAG::cloneInstr(MachineInstr *OldMI, in cloneInstr() argument
3082 MachineInstr *NewMI = MF.CloneMachineInstr(OldMI); in cloneInstr()
3085 if (OldMI->isInlineAsm()) in cloneInstr()
3086 for (unsigned i = 0, e = OldMI->getNumOperands(); i != e; ++i) { in cloneInstr()
3087 const auto &MO = OldMI->getOperand(i); in cloneInstr()
3091 if (OldMI->isRegTiedToUseOperand(i, &UseIdx)) in cloneInstr()
3094 updateMemOperands(*NewMI, *OldMI, CurStageNum - InstStageNum); in cloneInstr()
3101 MachineInstr *SwingSchedulerDAG::cloneAndChangeInstr(MachineInstr *OldMI, in cloneAndChangeInstr() argument
3105 MachineInstr *NewMI = MF.CloneMachineInstr(OldMI); in cloneAndChangeInstr()
3107 InstrChanges.find(getSUnit(OldMI)); in cloneAndChangeInstr()
3111 if (!TII->getBaseAndOffsetPosition(OldMI, BasePos, OffsetPos)) in cloneAndChangeInstr()
3113 int64_t NewOffset = OldMI->getOperand(OffsetPos).getImm(); in cloneAndChangeInstr()
3119 updateMemOperands(*NewMI, *OldMI, CurStageNum - InstStageNum); in cloneAndChangeInstr()