Lines Matching refs:NewInst
405 Instruction *NewInst) { in fixupPHINodeForNormalDest() argument
416 PHI->addIncoming(NewInst, OrigBB); in fixupPHINodeForNormalDest()
457 Instruction *NewInst = Inst->clone(); in createDirectCallInst() local
458 if (CallInst *CI = dyn_cast<CallInst>(NewInst)) { in createDirectCallInst()
466 InvokeInst *II = dyn_cast<InvokeInst>(NewInst); in createDirectCallInst()
474 NewInst); in createDirectCallInst()
477 NewInst->setMetadata(LLVMContext::MD_prof, 0); in createDirectCallInst()
478 CallSite NewCS(NewInst); in createDirectCallInst()
485 BitCastInst *BI = new BitCastInst(NewCS.getArgument(I), PTy, "", NewInst); in createDirectCallInst()
490 return insertCallRetCast(Inst, NewInst, DirectCallee); in createDirectCallInst()
540 Instruction *NewInst = in promote() local
562 IndirectCallBB, NewInst); in promote()
565 insertCallRetPHI(Inst, NewInst, DirectCallee); in promote()