Lines Matching refs:NewInst

57     Instruction *NewInst = I.clone();  in CloneBasicBlock()  local
59 NewInst->setName(I.getName() + NameSuffix); in CloneBasicBlock()
60 NewBB->getInstList().push_back(NewInst); in CloneBasicBlock()
61 VMap[&I] = NewInst; // Add instruction map to value. in CloneBasicBlock()
373 Instruction *NewInst = nullptr; in cloneInstruction() local
433 NewInst = CallInst::Create(IFn, Args, OldInst.getName() + ".strict"); in cloneInstruction()
436 if (!NewInst) in cloneInstruction()
437 NewInst = II->clone(); in cloneInstruction()
438 return NewInst; in cloneInstruction()
480 Instruction *NewInst = cloneInstruction(II); in CloneBlock() local
485 if (auto *Call = dyn_cast<CallInst>(NewInst)) in CloneBlock()
491 if (!isa<PHINode>(NewInst)) { in CloneBlock()
492 RemapInstruction(NewInst, VMap, in CloneBlock()
499 simplifyInstruction(NewInst, BB->getModule()->getDataLayout())) { in CloneBlock()
506 if (!NewInst->mayHaveSideEffects()) { in CloneBlock()
508 NewInst->deleteValue(); in CloneBlock()
515 NewInst->setName(II->getName() + NameSuffix); in CloneBlock()
516 VMap[&*II] = NewInst; // Add instruction map to value. in CloneBlock()
517 NewBB->getInstList().push_back(NewInst); in CloneBlock()
521 CodeInfo->OrigVMap[&*II] = NewInst; in CloneBlock()
524 CodeInfo->OperandBundleCallSites.push_back(NewInst); in CloneBlock()
573 Instruction *NewInst = OldTI->clone(); in CloneBlock() local
575 NewInst->setName(OldTI->getName() + NameSuffix); in CloneBlock()
576 NewBB->getInstList().push_back(NewInst); in CloneBlock()
577 VMap[OldTI] = NewInst; // Add instruction map to value. in CloneBlock()
580 CodeInfo->OrigVMap[OldTI] = NewInst; in CloneBlock()
583 CodeInfo->OperandBundleCallSites.push_back(NewInst); in CloneBlock()