Lines Matching defs:NewInst
56 Instruction *NewInst = I.clone();
58 NewInst->setName(I.getName() + NameSuffix);
60 NewInst->insertBefore(*NewBB, NewBB->end());
61 NewInst->cloneDebugInfoFrom(&I);
63 VMap[&I] = NewInst; // Add instruction map to value.
439 Instruction *NewInst = nullptr;
499 NewInst = CallInst::Create(IFn, Args, OldInst.getName() + ".strict");
502 if (!NewInst)
503 NewInst = II->clone();
504 return NewInst;
545 [NewBB, &DbgCursor](Instruction *NewInst, BasicBlock::const_iterator II) {
553 NewInst->cloneDebugInfoFrom(&*DbgCursor, std::nullopt, false);
554 NewInst->cloneDebugInfoFrom(&*II);
569 Instruction *NewInst = cloneInstruction(II);
570 NewInst->insertInto(NewBB, NewBB->end());
575 if (auto *Call = dyn_cast<CallInst>(NewInst))
582 if (!isa<PHINode>(NewInst) && !isa<DbgVariableIntrinsic>(NewInst)) {
583 RemapInstruction(NewInst, VMap,
591 NewInst, BB->getDataLayout())) {
592 if (isInstructionTriviallyDead(NewInst)) {
594 NewInst->eraseFromParent();
601 NewInst->setName(II->getName() + NameSuffix);
602 VMap[&*II] = NewInst; // Add instruction map to value.
609 CloneDbgRecordsToHere(NewInst, II);
612 CodeInfo->OrigVMap[&*II] = NewInst;
615 CodeInfo->OperandBundleCallSites.push_back(NewInst);
664 Instruction *NewInst = OldTI->clone();
666 NewInst->setName(OldTI->getName() + NameSuffix);
667 NewInst->insertInto(NewBB, NewBB->end());
669 CloneDbgRecordsToHere(NewInst, OldTI->getIterator());
671 VMap[OldTI] = NewInst; // Add instruction map to value.
674 CodeInfo->OrigVMap[OldTI] = NewInst;
677 CodeInfo->OperandBundleCallSites.push_back(NewInst);
685 Instruction *NewInst = NewBB->getTerminator();
686 assert(NewInst);
688 CloneDbgRecordsToHere(NewInst, OldTI->getIterator());