Lines Matching refs:Callee

381 CallBase &llvm::versionCallSite(CallBase &CB, Value *Callee,  in versionCallSite()  argument
388 if (CB.getCalledOperand()->getType() != Callee->getType()) in versionCallSite()
389 Callee = Builder.CreateBitCast(Callee, CB.getCalledOperand()->getType()); in versionCallSite()
390 auto *Cond = Builder.CreateICmpEQ(CB.getCalledOperand(), Callee); in versionCallSite()
395 bool llvm::isLegalToPromote(const CallBase &CB, Function *Callee, in isLegalToPromote() argument
399 auto &DL = Callee->getDataLayout(); in isLegalToPromote()
404 Type *FuncRetTy = Callee->getReturnType(); in isLegalToPromote()
413 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote()
420 if (NumArgs != NumParams && !Callee->isVarArg()) { in isLegalToPromote()
433 if (Callee->hasParamAttribute(I, Attribute::ByVal) != in isLegalToPromote()
439 if (Callee->hasParamAttribute(I, Attribute::InAlloca) != in isLegalToPromote()
446 Type *FormalTy = Callee->getFunctionType()->getFunctionParamType(I); in isLegalToPromote()
470 assert(Callee->isVarArg()); in isLegalToPromote()
481 CallBase &llvm::promoteCall(CallBase &CB, Function *Callee, in promoteCall() argument
487 CB.setCalledOperand(Callee); in promoteCall()
497 if (CB.getFunctionType() == Callee->getFunctionType()) in promoteCall()
502 Type *CalleeRetTy = Callee->getReturnType(); in promoteCall()
505 CB.mutateFunctionType(Callee->getFunctionType()); in promoteCall()
510 auto CalleeType = Callee->getFunctionType(); in promoteCall()
513 LLVMContext &Ctx = Callee->getContext(); in promoteCall()
534 ArgAttrs.addByValAttr(Callee->getParamByValType(ArgNo)); in promoteCall()
536 ArgAttrs.addInAllocaAttr(Callee->getParamInAllocaType(ArgNo)); in promoteCall()
563 CallBase &llvm::promoteCallWithIfThenElse(CallBase &CB, Function *Callee, in promoteCallWithIfThenElse() argument
569 CallBase &NewInst = versionCallSite(CB, Callee, BranchWeights); in promoteCallWithIfThenElse()
572 return promoteCall(NewInst, Callee); in promoteCallWithIfThenElse()
576 Function *Callee, in promoteCallWithVTableCmp() argument
593 return promoteCall(NewInst, Callee); in promoteCallWithVTableCmp()
600 Value *Callee = CB.getCalledOperand(); in tryPromoteCall() local
602 LoadInst *VTableEntryLoad = dyn_cast<LoadInst>(Callee); in tryPromoteCall()