Lines Matching refs:NewMI
391 void updateMemOperands(MachineInstr &NewMI, MachineInstr &OldMI,
398 void updateInstruction(MachineInstr *NewMI, bool LastDef,
2236 MachineInstr *NewMI = cloneInstr(CI->getInstr(), MaxStageCount, StageNum); in generatePipelinedLoop() local
2237 updateInstruction(NewMI, false, MaxStageCount, StageNum, Schedule, VRMap); in generatePipelinedLoop()
2238 KernelBB->push_back(NewMI); in generatePipelinedLoop()
2239 InstrMap[NewMI] = CI->getInstr(); in generatePipelinedLoop()
2248 MachineInstr *NewMI = MF.CloneMachineInstr(&*I); in generatePipelinedLoop() local
2249 updateInstruction(NewMI, false, MaxStageCount, 0, Schedule, VRMap); in generatePipelinedLoop()
2250 KernelBB->push_back(NewMI); in generatePipelinedLoop()
2251 InstrMap[NewMI] = &*I; in generatePipelinedLoop()
2319 MachineInstr *NewMI = in generateProlog() local
2321 updateInstruction(NewMI, false, i, (unsigned)StageNum, Schedule, in generateProlog()
2323 NewBB->push_back(NewMI); in generateProlog()
2324 InstrMap[NewMI] = &*BBI; in generateProlog()
2396 MachineInstr *NewMI = cloneInstr(In, EpilogStage - LastStage, 0); in generateEpilog() local
2397 updateInstruction(NewMI, i == 1, EpilogStage, 0, Schedule, VRMap); in generateEpilog()
2398 NewBB->push_back(NewMI); in generateEpilog()
2399 InstrMap[NewMI] = In; in generateEpilog()
3048 void SwingSchedulerDAG::updateMemOperands(MachineInstr &NewMI, in updateMemOperands() argument
3054 unsigned NumRefs = NewMI.memoperands_end() - NewMI.memoperands_begin(); in updateMemOperands()
3059 for (MachineInstr::mmo_iterator I = NewMI.memoperands_begin(), in updateMemOperands()
3060 E = NewMI.memoperands_end(); in updateMemOperands()
3074 NewMI.setMemRefs(NewMemRefs, NewMemRefs + NumRefs); in updateMemOperands()
3082 MachineInstr *NewMI = MF.CloneMachineInstr(OldMI); in cloneInstr() local
3092 NewMI->tieOperands(i, UseIdx); in cloneInstr()
3094 updateMemOperands(*NewMI, *OldMI, CurStageNum - InstStageNum); in cloneInstr()
3095 return NewMI; in cloneInstr()
3105 MachineInstr *NewMI = MF.CloneMachineInstr(OldMI); in cloneAndChangeInstr() local
3117 NewMI->getOperand(OffsetPos).setImm(NewOffset); in cloneAndChangeInstr()
3119 updateMemOperands(*NewMI, *OldMI, CurStageNum - InstStageNum); in cloneAndChangeInstr()
3120 return NewMI; in cloneAndChangeInstr()
3125 void SwingSchedulerDAG::updateInstruction(MachineInstr *NewMI, bool LastDef, in updateInstruction() argument
3130 for (unsigned i = 0, e = NewMI->getNumOperands(); i != e; ++i) { in updateInstruction()
3131 MachineOperand &MO = NewMI->getOperand(i); in updateInstruction()
3377 MachineInstr *NewMI = MF.CloneMachineInstr(MI); in applyInstrChange() local
3380 NewMI->getOperand(BasePos).setReg(RegAndOffset.first); in applyInstrChange()
3386 NewMI->getOperand(OffsetPos).setImm(NewOffset); in applyInstrChange()
3388 SU->setInstr(NewMI); in applyInstrChange()
3389 MISUnitMap[NewMI] = SU; in applyInstrChange()
3391 NewMIs.insert(NewMI); in applyInstrChange()
3392 return NewMI; in applyInstrChange()