Lines Matching refs:NewInst
51 Instruction *NewInst = II->clone(); in CloneBasicBlock() local
53 NewInst->setName(II->getName()+NameSuffix); in CloneBasicBlock()
54 NewBB->getInstList().push_back(NewInst); in CloneBasicBlock()
55 VMap[&*II] = NewInst; // Add instruction map to value. in CloneBasicBlock()
281 Instruction *NewInst = II->clone(); in CloneBlock() local
285 if (!isa<PHINode>(NewInst)) { in CloneBlock()
286 RemapInstruction(NewInst, VMap, in CloneBlock()
293 SimplifyInstruction(NewInst, BB->getModule()->getDataLayout())) { in CloneBlock()
299 if (!NewInst->mayHaveSideEffects()) { in CloneBlock()
301 delete NewInst; in CloneBlock()
308 NewInst->setName(II->getName()+NameSuffix); in CloneBlock()
309 VMap[&*II] = NewInst; // Add instruction map to value. in CloneBlock()
310 NewBB->getInstList().push_back(NewInst); in CloneBlock()
316 CodeInfo->OperandBundleCallSites.push_back(NewInst); in CloneBlock()
364 Instruction *NewInst = OldTI->clone(); in CloneBlock() local
366 NewInst->setName(OldTI->getName()+NameSuffix); in CloneBlock()
367 NewBB->getInstList().push_back(NewInst); in CloneBlock()
368 VMap[OldTI] = NewInst; // Add instruction map to value. in CloneBlock()
373 CodeInfo->OperandBundleCallSites.push_back(NewInst); in CloneBlock()