Lines Matching refs:NewCB

197     CallBase *NewCB = nullptr;  in deleteDeadVarargs()  local
199 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in deleteDeadVarargs()
202 NewCB = CallInst::Create(NF, Args, OpBundles, "", CB); in deleteDeadVarargs()
203 cast<CallInst>(NewCB)->setTailCallKind( in deleteDeadVarargs()
206 NewCB->setCallingConv(CB->getCallingConv()); in deleteDeadVarargs()
207 NewCB->setAttributes(PAL); in deleteDeadVarargs()
208 NewCB->copyMetadata(*CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg}); in deleteDeadVarargs()
213 CB->replaceAllUsesWith(NewCB); in deleteDeadVarargs()
215 NewCB->takeName(CB); in deleteDeadVarargs()
928 CallBase *NewCB = nullptr; in removeDeadStuffFromFunction() local
930 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in removeDeadStuffFromFunction()
933 NewCB = CallInst::Create(NFTy, NF, Args, OpBundles, "", &CB); in removeDeadStuffFromFunction()
934 cast<CallInst>(NewCB)->setTailCallKind( in removeDeadStuffFromFunction()
937 NewCB->setCallingConv(CB.getCallingConv()); in removeDeadStuffFromFunction()
938 NewCB->setAttributes(NewCallPAL); in removeDeadStuffFromFunction()
939 NewCB->copyMetadata(CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg}); in removeDeadStuffFromFunction()
944 if (NewCB->getType() == CB.getType()) { in removeDeadStuffFromFunction()
946 CB.replaceAllUsesWith(NewCB); in removeDeadStuffFromFunction()
947 NewCB->takeName(&CB); in removeDeadStuffFromFunction()
948 } else if (NewCB->getType()->isVoidTy()) { in removeDeadStuffFromFunction()
960 SplitEdge(NewCB->getParent(), II->getNormalDest()); in removeDeadStuffFromFunction()
977 V = IRB.CreateExtractValue(NewCB, NewRetIdxs[Ri], "newret"); in removeDeadStuffFromFunction()
980 V = NewCB; in removeDeadStuffFromFunction()
987 NewCB->takeName(&CB); in removeDeadStuffFromFunction()