Lines Matching refs:NewCB

204     CallBase *NewCB = nullptr;  in deleteDeadVarargs()  local
206 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in deleteDeadVarargs()
209 NewCB = CallInst::Create(NF, Args, OpBundles, "", CB); in deleteDeadVarargs()
210 cast<CallInst>(NewCB)->setTailCallKind( in deleteDeadVarargs()
213 NewCB->setCallingConv(CB->getCallingConv()); in deleteDeadVarargs()
214 NewCB->setAttributes(PAL); in deleteDeadVarargs()
215 NewCB->copyMetadata(*CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg}); in deleteDeadVarargs()
220 CB->replaceAllUsesWith(NewCB); in deleteDeadVarargs()
222 NewCB->takeName(CB); in deleteDeadVarargs()
944 CallBase *NewCB = nullptr; in removeDeadStuffFromFunction() local
946 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in removeDeadStuffFromFunction()
949 NewCB = CallInst::Create(NFTy, NF, Args, OpBundles, "", &CB); in removeDeadStuffFromFunction()
950 cast<CallInst>(NewCB)->setTailCallKind( in removeDeadStuffFromFunction()
953 NewCB->setCallingConv(CB.getCallingConv()); in removeDeadStuffFromFunction()
954 NewCB->setAttributes(NewCallPAL); in removeDeadStuffFromFunction()
955 NewCB->copyMetadata(CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg}); in removeDeadStuffFromFunction()
960 if (NewCB->getType() == CB.getType()) { in removeDeadStuffFromFunction()
962 CB.replaceAllUsesWith(NewCB); in removeDeadStuffFromFunction()
963 NewCB->takeName(&CB); in removeDeadStuffFromFunction()
964 } else if (NewCB->getType()->isVoidTy()) { in removeDeadStuffFromFunction()
976 SplitEdge(NewCB->getParent(), II->getNormalDest()); in removeDeadStuffFromFunction()
993 V = IRB.CreateExtractValue(NewCB, NewRetIdxs[Ri], "newret"); in removeDeadStuffFromFunction()
996 V = NewCB; in removeDeadStuffFromFunction()
1003 NewCB->takeName(&CB); in removeDeadStuffFromFunction()