Lines Matching defs:Callee

172   if (const Function *Callee = CB->getCalledFunction())
173 return Callee;
180 getAllocationDataForFunction(const Function *Callee, AllocType AllocTy,
184 if (!Callee->getReturnType()->isPointerTy())
189 if (!TLI || !TLI->getLibFunc(*Callee, TLIFn) || !TLI->has(TLIFn))
207 FunctionType *FTy = Callee->getFunctionType();
225 if (const Function *Callee = getCalledFunction(V, IsNoBuiltinCall))
227 return getAllocationDataForFunction(Callee, AllocTy, TLI);
235 if (const Function *Callee = getCalledFunction(V, IsNoBuiltinCall))
238 Callee, AllocTy, &GetTLI(const_cast<Function &>(*Callee)));
245 const Function *Callee =
247 if (!Callee)
254 getAllocationDataForFunction(Callee, AnyAlloc, TLI))
257 Attribute Attr = Callee->getFnAttribute(Attribute::AllocSize);
267 Result.NumParams = Callee->getNumOperands();
500 std::optional<FreeFnsTy> getFreeFunctionDataForFunction(const Function *Callee,
514 const Function *Callee = getCalledFunction(I, IsNoBuiltin);
515 if (Callee == nullptr || IsNoBuiltin)
519 if (TLI && TLI->getLibFunc(*Callee, TLIFn) && TLI->has(TLIFn)) {
520 // Callee is some known library function.
521 const auto AllocData = getAllocationDataForFunction(Callee, AnyAlloc, TLI);
524 const auto FreeData = getFreeFunctionDataForFunction(Callee, TLIFn);
528 // Callee isn't a known library function, still check attributes.
560 const Function *Callee = getCalledFunction(CB, IsNoBuiltinCall);
561 if (Callee == nullptr || IsNoBuiltinCall)
565 if (TLI && TLI->getLibFunc(*Callee, TLIFn) && TLI->has(TLIFn) &&
566 isLibFreeFunction(Callee, TLIFn)) {
913 Function *Callee = CB->getCalledFunction();
915 if (!Callee)