Home
last modified time | relevance | path

Searched refs:CalledFunction (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp420 auto *CalledFunction = CB->getCalledFunction(); in computeFunctionSummary() local
421 if (CalledValue && !CalledFunction) { in computeFunctionSummary()
424 CalledFunction = dyn_cast<Function>(CalledValue); in computeFunctionSummary()
429 assert(!CalledFunction && "Expected null called function in callsite for alias"); in computeFunctionSummary()
430 CalledFunction = dyn_cast<Function>(GA->getAliaseeObject()); in computeFunctionSummary()
434 if (CalledFunction) { in computeFunctionSummary()
435 if (CI && CalledFunction->isIntrinsic()) { in computeFunctionSummary()
442 assert(CalledFunction->hasName()); in computeFunctionSummary()
509 if (!CalledFunction && !EnableMemProfIndirectCallSupport) in computeFunctionSummary()
595 if (CalledFunction) { in computeFunctionSummary()
[all …]
H A DInlineCost.cpp3471 Function *CalledFunction = CB->getCalledFunction(); in run() local
3472 if (!CalledFunction || CalledFunction->isDeclaration()) in run()
3474 OptimizationRemarkEmitter ORE(CalledFunction); in run()
3475 InlineCostCallAnalyzer ICCA(*CalledFunction, *CB, Params, TTI, in run()
3479 OS << " Analyzing call of " << CalledFunction->getName() in run()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemProfUse.cpp209 auto *CalledFunction = CB->getCalledFunction(); in extractCallsFromIR() local
211 if (!CalledFunction || CalledFunction->isIntrinsic()) in extractCallsFromIR()
214 StringRef CalleeName = CalledFunction->getName(); in extractCallsFromIR()
217 bool IsAlloc = isAllocationWithHotColdVariant(CalledFunction, TLI); in extractCallsFromIR()
507 auto *CalledFunction = CI->getCalledFunction(); in readMemprof() local
508 if (CalledFunction && CalledFunction->isIntrinsic()) in readMemprof()
635 if (!CalledFunction) in readMemprof()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/
H A DAArch64SMEAttributes.cpp116 if (auto *CalledFunction = CB.getCalledFunction()) in SMECallAttrs() local
117 CalledFn = SMEAttrs(*CalledFunction, SMEAttrs::InferAttrsFromName::Yes); in SMECallAttrs()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp1017 Function *CalledFunction = I->getCalledFunction(); in emitOptimizationRemarksForInlineCandidates() local
1018 if (CalledFunction) { in emitOptimizationRemarksForInlineCandidates()
1024 << ore::NV("Callee", CalledFunction) << "' into '" in emitOptimizationRemarksForInlineCandidates()
1184 Function *CalledFunction = I->getCalledFunction(); in inlineHotFunctions() local
1189 if (CalledFunction == &F) in inlineHotFunctions()
1209 } else if (CalledFunction && CalledFunction->getSubprogram() && in inlineHotFunctions()
1210 !CalledFunction->isDeclaration()) { in inlineHotFunctions()
1239 Function *CalledFunction = CB.getCalledFunction(); in tryInlineCandidate() local
1240 assert(CalledFunction && "Expect a callee with definition"); in tryInlineCandidate()
1263 emitInlinedIntoBasedOnCost(*ORE, DLoc, BB, *CalledFunction, *BB->getParent(), in tryInlineCandidate()
[all …]
H A DMemProfContextDisambiguation.cpp2680 auto *CalledFunction = CB->getCalledFunction(); in findProfiledCalleeThroughTailCalls() local
2681 if (CalledValue && !CalledFunction) { in findProfiledCalleeThroughTailCalls()
2684 CalledFunction = dyn_cast<Function>(CalledValue); in findProfiledCalleeThroughTailCalls()
2689 assert(!CalledFunction && in findProfiledCalleeThroughTailCalls()
2691 CalledFunction = dyn_cast<Function>(GA->getAliaseeObject()); in findProfiledCalleeThroughTailCalls()
2693 if (!CalledFunction) in findProfiledCalleeThroughTailCalls()
2695 if (CalledFunction == ProfiledCallee) { in findProfiledCalleeThroughTailCalls()
2707 ProfiledCallee, CalledFunction, Depth + 1, in findProfiledCalleeThroughTailCalls()
5160 Function *CalledFunction) { in applyImport() argument
5164 assert(!isMemProfClone(*CalledFunction)); in applyImport()
[all …]
H A DFunctionSpecialization.cpp1065 Function *CalledFunction = dyn_cast<Function>(C->stripPointerCasts()); in getInliningBonus() local
1066 if (!CalledFunction) in getInliningBonus()
1070 auto &CalleeTTI = (GetTTI)(*CalledFunction); in getInliningBonus()
1084 if (CS->getFunctionType() != CalledFunction->getFunctionType()) in getInliningBonus()
1099 getInlineCost(*CS, CalledFunction, Params, CalleeTTI, GetAC, GetTLI); in getInliningBonus()
H A DOpenMPOpt.cpp1358 Function *CalledFunction = CI->getCalledFunction(); in mergeParallelRegions() local
1359 if (!CalledFunction) in mergeParallelRegions()
1367 if (CalledFunction == RFI.Declaration) in mergeParallelRegions()
2378 Function *CalledFunction = CB->getCalledFunction(); in getValueForCall() local
2381 if (CalledFunction == nullptr) in getValueForCall()
2383 if (CalledFunction == GetterRFI.Declaration) in getValueForCall()
2385 if (CalledFunction == SetterRFI.Declaration) { in getValueForCall()
2393 if (CalledFunction->isDeclaration()) in getValueForCall()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp1376 auto *CalledFunction = CB.getCalledFunction(); in AddParamAndFnBasicAttributes() local
1377 auto &Context = CalledFunction->getContext(); in AddParamAndFnBasicAttributes()
1417 for (BasicBlock &BB : *CalledFunction) { in AddParamAndFnBasicAttributes()
1556 auto *CalledFunction = CB.getCalledFunction(); in AddReturnAttributes() local
1557 auto &Context = CalledFunction->getContext(); in AddReturnAttributes()
1559 for (auto &BB : *CalledFunction) { in AddReturnAttributes()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DSampleProfReader.cpp631 auto CalledFunction(readStringFromTable()); in readProfile() local
632 if (std::error_code EC = CalledFunction.getError()) in readProfile()
640 *CalledFunction, *CalledFunctionSamples); in readProfile()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafety.cpp1965 const auto *CalledFunction = dyn_cast<FunctionDecl>(D); in handleCall() local
1966 if (CalledFunction && Args.has_value()) { in handleCall()
1967 for (auto [Param, Arg] : zip(CalledFunction->parameters(), *Args)) { in handleCall()