Home
last modified time | relevance | path

Searched refs:GetBFI (Results 1 – 13 of 13) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAlwaysInliner.cpp37 function_ref<BlockFrequencyInfo &(Function &)> GetBFI) { in AlwaysInlineImpl() argument
66 GetBFI ? &GetBFI(*Caller) : nullptr, in AlwaysInlineImpl()
67 GetBFI ? &GetBFI(F) : nullptr); in AlwaysInlineImpl()
185 auto GetBFI = [&](Function &F) -> BlockFrequencyInfo & { in run() local
194 GetAAR, GetBFI); in run()
H A DSCCP.cpp116 std::function<BlockFrequencyInfo &(Function &)> GetBFI, in runIPSCCP() argument
119 FunctionSpecializer Specializer(Solver, M, FAM, GetBFI, GetTLI, GetTTI, in runIPSCCP()
410 auto GetBFI = [&FAM](Function &F) -> BlockFrequencyInfo & { in run() local
415 if (!runIPSCCP(M, DL, &FAM, GetTLI, GetTTI, GetAC, GetDT, GetBFI, in run()
H A DPartialInlining.cpp197 GetTTI(GTTI), GetBFI(GBFI), GetTLI(GTLI), PSI(ProfSI) {} in PartialInlinerImpl()
269 function_ref<BlockFrequencyInfo &(Function &)> GetBFI; member
356 if (!GetBFI) { in computeOutliningColdRegionsInfo()
360 BFI = &(GetBFI(F)); in computeOutliningColdRegionsInfo()
736 GetTLI, GetBFI, &PSI, RemarksEnabled ? &ORE : nullptr); in shouldPartialInline()
911 if (!GetBFI) { in computeCallsiteToProfCountMap()
919 CurrentCallerBFI = &(GetBFI(*Caller)); in computeCallsiteToProfCountMap()
1466 auto GetBFI = [&FAM](Function &F) -> BlockFrequencyInfo & { in run() local
1481 GetTLI, PSI, GetBFI) in run()
H A DGlobalOpt.cpp1740 function_ref<BlockFrequencyInfo &(Function &)> GetBFI, in isValidCandidateForColdCC() argument
1752 BlockFrequencyInfo &CallerBFI = GetBFI(*CallerFunc); in isValidCandidateForColdCC()
1774 function_ref<BlockFrequencyInfo &(Function &)> GetBFI, in hasOnlyColdCalls() argument
1796 BlockFrequencyInfo &CallerBFI = GetBFI(F); in hasOnlyColdCalls()
1911 function_ref<BlockFrequencyInfo &(Function &)> GetBFI, in OptimizeFunctions() argument
1922 if (hasOnlyColdCalls(F, GetBFI, ChangeableCCCache)) in OptimizeFunctions()
1993 isValidCandidateForColdCC(F, GetBFI, AllCallsCold))) { in OptimizeFunctions()
2414 function_ref<BlockFrequencyInfo &(Function &)> GetBFI, in optimizeGlobalsInModule() argument
2441 LocalChange |= OptimizeFunctions(M, GetTLI, GetTTI, GetBFI, LookupDomTree, in optimizeGlobalsInModule()
2493 auto GetBFI = [&FAM](Function &F) -> BlockFrequencyInfo & { in run() local
[all …]
H A DHotColdSplitting.cpp648 BFI = GetBFI(F); in outlineColdRegions()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DFunctionSpecialization.h260 std::function<BlockFrequencyInfo &(Function &)> GetBFI; variable
274 std::function<BlockFrequencyInfo &(Function &)> GetBFI, in FunctionSpecializer() argument
278 : Solver(Solver), M(M), FAM(FAM), GetBFI(GetBFI), GetTLI(GetTLI), in FunctionSpecializer()
286 auto &BFI = GetBFI(*F); in getInstCostVisitorFor()
H A DHotColdSplitting.h41 : PSI(ProfSI), GetBFI(GBFI), GetTTI(GTTI), GetORE(GORE), LookupAC(LAC) {} in HotColdSplitting()
60 function_ref<BlockFrequencyInfo *(Function &)> GetBFI; variable
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInlineCost.h281 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr,
295 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr,
320 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr,
329 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr,
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineCost.cpp250 function_ref<BlockFrequencyInfo &(Function &)> GetBFI; member in __anond1042ba30111::CallAnalyzer
500 : TTI(TTI), GetAssumptionCache(GetAssumptionCache), GetBFI(GetBFI), in CallAnalyzer()
751 assert(GetBFI && "GetBFI must be available"); in onBlockAnalyzed()
752 BlockFrequencyInfo *BFI = &(GetBFI(F)); in onBlockAnalyzed()
793 if (!GetBFI) in isCostBenefitAnalysisEnabled()
810 BlockFrequencyInfo *CallerBFI = &(GetBFI(*Caller)); in isCostBenefitAnalysisEnabled()
823 BlockFrequencyInfo *CalleeBFI = &(GetBFI(F)); in isCostBenefitAnalysisEnabled()
870 assert(GetBFI); in costBenefitAnalysis()
871 BlockFrequencyInfo *CalleeBFI = &(GetBFI(F)); in costBenefitAnalysis()
1969 BlockFrequencyInfo *CallerBFI = GetBFI ? &(GetBFI(*Caller)) : nullptr; in updateThreshold()
[all …]
H A DInlineOrder.cpp58 auto GetBFI = [&](Function &F) -> BlockFrequencyInfo & { in getInlineCostWrapper() local
71 GetBFI, PSI, RemarksEnabled ? &ORE : nullptr); in getInlineCostWrapper()
H A DInlineAdvisor.cpp146 auto GetBFI = [&](Function &F) -> BlockFrequencyInfo & { in getDefaultInlineAdvice() local
160 GetBFI, PSI, RemarksEnabled ? &ORE : nullptr); in getDefaultInlineAdvice()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp249 GetBFIFunc GetBFI; member in __anonc25ff32a0111::InductiveRangeCheckElimination
258 LoopInfo &LI, GetBFIFunc GetBFI = std::nullopt) in InductiveRangeCheckElimination() argument
259 : SE(SE), BPI(BPI), DT(DT), LI(LI), GetBFI(GetBFI) {} in InductiveRangeCheckElimination()
948 if (GetBFI) { in isProfitableToTransform()
949 BlockFrequencyInfo &BFI = (*GetBFI)(); in isProfitableToTransform()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DGCOVProfiling.cpp98 runOnModule(Module &M, function_ref<BlockFrequencyInfo *(Function &F)> GetBFI,
118 function_ref<BlockFrequencyInfo *(Function &F)> GetBFI,
553 Module &M, function_ref<BlockFrequencyInfo *(Function &F)> GetBFI, in runOnModule() argument
568 emitProfileNotes(CUNode, HasExecOrFork, GetBFI, GetBPI, this->GetTLI); in runOnModule()
579 auto GetBFI = [&FAM](Function &F) { in run() local
589 if (!Profiler.runOnModule(M, GetBFI, GetBPI, GetTLI)) in run()
764 function_ref<BlockFrequencyInfo *(Function &F)> GetBFI, in emitProfileNotes() argument
813 BlockFrequencyInfo *BFI = GetBFI(F); in emitProfileNotes()