Lines Matching defs:NewCB
204 CallBase *NewCB = nullptr;
206 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(),
209 NewCB = CallInst::Create(NF, Args, OpBundles, "", CB->getIterator());
210 cast<CallInst>(NewCB)->setTailCallKind(
213 NewCB->setCallingConv(CB->getCallingConv());
214 NewCB->setAttributes(PAL);
215 NewCB->copyMetadata(*CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg});
220 CB->replaceAllUsesWith(NewCB);
222 NewCB->takeName(CB);
942 CallBase *NewCB = nullptr;
944 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(),
947 NewCB = CallInst::Create(NFTy, NF, Args, OpBundles, "", CB.getIterator());
948 cast<CallInst>(NewCB)->setTailCallKind(
951 NewCB->setCallingConv(CB.getCallingConv());
952 NewCB->setAttributes(NewCallPAL);
953 NewCB->copyMetadata(CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg});
958 if (NewCB->getType() == CB.getType()) {
960 CB.replaceAllUsesWith(NewCB);
961 NewCB->takeName(&CB);
962 } else if (NewCB->getType()->isVoidTy()) {
974 SplitEdge(NewCB->getParent(), II->getNormalDest());
991 V = IRB.CreateExtractValue(NewCB, NewRetIdxs[Ri], "newret");
994 V = NewCB;
1001 NewCB->takeName(&CB);