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->getIterator()); 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()
942 CallBase *NewCB = nullptr; in removeDeadStuffFromFunction() local
944 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in removeDeadStuffFromFunction()
947 NewCB = CallInst::Create(NFTy, NF, Args, OpBundles, "", CB.getIterator()); in removeDeadStuffFromFunction()
948 cast<CallInst>(NewCB)->setTailCallKind( in removeDeadStuffFromFunction()
951 NewCB->setCallingConv(CB.getCallingConv()); in removeDeadStuffFromFunction()
952 NewCB->setAttributes(NewCallPAL); in removeDeadStuffFromFunction()
953 NewCB->copyMetadata(CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg}); in removeDeadStuffFromFunction()
958 if (NewCB->getType() == CB.getType()) { in removeDeadStuffFromFunction()
960 CB.replaceAllUsesWith(NewCB); in removeDeadStuffFromFunction()
961 NewCB->takeName(&CB); in removeDeadStuffFromFunction()
962 } else if (NewCB->getType()->isVoidTy()) { in removeDeadStuffFromFunction()
974 SplitEdge(NewCB->getParent(), II->getNormalDest()); in removeDeadStuffFromFunction()
991 V = IRB.CreateExtractValue(NewCB, NewRetIdxs[Ri], "newret"); in removeDeadStuffFromFunction()
994 V = NewCB; in removeDeadStuffFromFunction()
1001 NewCB->takeName(&CB); in removeDeadStuffFromFunction()