Lines Matching defs:NewCB
205 CallBase *NewCB = nullptr;
207 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(),
210 NewCB = CallInst::Create(NF, Args, OpBundles, "", CB->getIterator());
211 cast<CallInst>(NewCB)->setTailCallKind(
214 NewCB->setCallingConv(CB->getCallingConv());
215 NewCB->setAttributes(PAL);
216 NewCB->copyMetadata(*CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg});
221 CB->replaceAllUsesWith(NewCB);
223 NewCB->takeName(CB);
957 CallBase *NewCB = nullptr;
959 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(),
962 NewCB = CallInst::Create(NFTy, NF, Args, OpBundles, "", CB.getIterator());
963 cast<CallInst>(NewCB)->setTailCallKind(
966 NewCB->setCallingConv(CB.getCallingConv());
967 NewCB->setAttributes(NewCallPAL);
968 NewCB->copyMetadata(CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg});
973 if (NewCB->getType() == CB.getType()) {
975 CB.replaceAllUsesWith(NewCB);
976 NewCB->takeName(&CB);
977 } else if (NewCB->getType()->isVoidTy()) {
988 SplitEdge(NewCB->getParent(), II->getNormalDest());
1005 V = IRB.CreateExtractValue(NewCB, NewRetIdxs[Ri], "newret");
1008 V = NewCB;
1015 NewCB->takeName(&CB);