Lines Matching defs:CB
211 CallBase &CB = cast<CallBase>(*F->user_back());
212 assert(CB.getCalledFunction() == F);
213 const AttributeList &CallPAL = CB.getAttributes();
214 IRBuilder<NoFolder> IRB(&CB);
218 auto *AI = CB.arg_begin();
259 for (; AI != CB.arg_end(); ++AI, ++ArgNo) {
265 CB.getOperandBundlesAsDefs(OpBundles);
268 if (InvokeInst *II = dyn_cast<InvokeInst>(&CB)) {
270 Args, OpBundles, "", CB.getIterator());
273 CallInst::Create(NF, Args, OpBundles, "", CB.getIterator());
274 NewCall->setTailCallKind(cast<CallInst>(&CB)->getTailCallKind());
277 NewCS->setCallingConv(CB.getCallingConv());
281 NewCS->copyMetadata(CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg});
285 AttributeFuncs::updateMinLegalVectorWidthAttr(*CB.getCaller(),
288 if (!CB.use_empty()) {
289 CB.replaceAllUsesWith(NewCS);
290 NewCS->takeName(&CB);
295 CB.eraseFromParent();
440 CallBase &CB = cast<CallBase>(*U);
465 if (RecursiveCalls.contains(&CB))
468 return isDereferenceableAndAlignedPointer(CB.getArgOperand(Arg->getArgNo()),
642 auto *CB = dyn_cast<CallBase>(V);
644 if (CB && CB->getCalledFunction() == CB->getFunction()) {
666 RecursiveCalls.insert(CB);
742 CallBase *CB = dyn_cast<CallBase>(U.getUser());
743 if (!CB)
746 const Function *Caller = CB->getCaller();
747 const Function *Callee = CB->getCalledFunction();
793 CallBase *CB = dyn_cast<CallBase>(U.getUser());
795 if (CB == nullptr || !CB->isCallee(&U) ||
796 CB->getFunctionType() != F->getFunctionType())
800 if (CB->isMustTailCall())
803 if (CB->getFunction() == F)
829 CallBase &CB = cast<CallBase>(*U.getUser());
830 CB.removeParamAttr(ArgNo, Attribute::StructRet);
831 CB.addParamAttr(ArgNo, Attribute::NoAlias);