• Home
  • Raw
  • Download

Lines Matching refs:NewMI

136     MachineInstr *NewMI = cloneInstr(CI, MaxStageCount, StageNum);  in generatePipelinedLoop()  local
137 updateInstruction(NewMI, false, MaxStageCount, StageNum, VRMap); in generatePipelinedLoop()
138 KernelBB->push_back(NewMI); in generatePipelinedLoop()
139 InstrMap[NewMI] = CI; in generatePipelinedLoop()
147 MachineInstr *NewMI = MF.CloneMachineInstr(&*I); in generatePipelinedLoop() local
148 updateInstruction(NewMI, false, MaxStageCount, 0, VRMap); in generatePipelinedLoop()
149 KernelBB->push_back(NewMI); in generatePipelinedLoop()
150 InstrMap[NewMI] = &*I; in generatePipelinedLoop()
219 MachineInstr *NewMI = in generateProlog() local
221 updateInstruction(NewMI, false, i, (unsigned)StageNum, VRMap); in generateProlog()
222 NewBB->push_back(NewMI); in generateProlog()
223 InstrMap[NewMI] = &*BBI; in generateProlog()
297 MachineInstr *NewMI = cloneInstr(In, UINT_MAX, 0); in generateEpilog() local
298 updateInstruction(NewMI, i == 1, EpilogStage, 0, VRMap); in generateEpilog()
299 NewBB->push_back(NewMI); in generateEpilog()
300 InstrMap[NewMI] = In; in generateEpilog()
949 void ModuloScheduleExpander::updateMemOperands(MachineInstr &NewMI, in updateMemOperands() argument
956 if (NewMI.memoperands_empty()) in updateMemOperands()
959 for (MachineMemOperand *MMO : NewMI.memoperands()) { in updateMemOperands()
977 NewMI.setMemRefs(MF, NewMMOs); in updateMemOperands()
985 MachineInstr *NewMI = MF.CloneMachineInstr(OldMI); in cloneInstr() local
995 NewMI->tieOperands(i, UseIdx); in cloneInstr()
997 updateMemOperands(*NewMI, *OldMI, CurStageNum - InstStageNum); in cloneInstr()
998 return NewMI; in cloneInstr()
1006 MachineInstr *NewMI = MF.CloneMachineInstr(OldMI); in cloneAndChangeInstr() local
1017 NewMI->getOperand(OffsetPos).setImm(NewOffset); in cloneAndChangeInstr()
1019 updateMemOperands(*NewMI, *OldMI, CurStageNum - InstStageNum); in cloneAndChangeInstr()
1020 return NewMI; in cloneAndChangeInstr()
1025 void ModuloScheduleExpander::updateInstruction(MachineInstr *NewMI, in updateInstruction() argument
1030 for (unsigned i = 0, e = NewMI->getNumOperands(); i != e; ++i) { in updateInstruction()
1031 MachineOperand &MO = NewMI->getOperand(i); in updateInstruction()
1675 MachineInstr *NewMI = MF.CloneMachineInstr(Phi); in moveStageBetweenBlocks() local
1676 DestBB->insert(InsertPt, NewMI); in moveStageBetweenBlocks()
1679 NewMI->getOperand(0).setReg(R); in moveStageBetweenBlocks()
1680 NewMI->getOperand(1).setReg(OrigR); in moveStageBetweenBlocks()
1681 NewMI->getOperand(2).setMBB(*DestBB->pred_begin()); in moveStageBetweenBlocks()
1683 CanonicalMIs[NewMI] = CanonicalMIs[Phi]; in moveStageBetweenBlocks()
1684 BlockMIs[{DestBB, CanonicalMIs[Phi]}] = NewMI; in moveStageBetweenBlocks()
1685 PhiNodeLoopIteration[NewMI] = PhiNodeLoopIteration[Phi]; in moveStageBetweenBlocks()