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
65 GetBFI ? &GetBFI(*Caller) : nullptr, in AlwaysInlineImpl()
66 GetBFI ? &GetBFI(F) : nullptr); in AlwaysInlineImpl()
172 auto GetBFI = [&](Function &F) -> BlockFrequencyInfo & { in run() local
181 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()
398 auto GetBFI = [&FAM](Function &F) -> BlockFrequencyInfo & { in run() local
403 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.cpp1752 function_ref<BlockFrequencyInfo &(Function &)> GetBFI, in isValidCandidateForColdCC() argument
1764 BlockFrequencyInfo &CallerBFI = GetBFI(*CallerFunc); in isValidCandidateForColdCC()
1786 function_ref<BlockFrequencyInfo &(Function &)> GetBFI, in hasOnlyColdCalls() argument
1808 BlockFrequencyInfo &CallerBFI = GetBFI(F); in hasOnlyColdCalls()
1923 function_ref<BlockFrequencyInfo &(Function &)> GetBFI, in OptimizeFunctions() argument
1934 if (hasOnlyColdCalls(F, GetBFI, ChangeableCCCache)) in OptimizeFunctions()
2005 isValidCandidateForColdCC(F, GetBFI, AllCallsCold))) { in OptimizeFunctions()
2487 function_ref<BlockFrequencyInfo &(Function &)> GetBFI, in optimizeGlobalsInModule() argument
2514 LocalChange |= OptimizeFunctions(M, GetTLI, GetTTI, GetBFI, LookupDomTree, in optimizeGlobalsInModule()
2575 auto GetBFI = [&FAM](Function &F) -> BlockFrequencyInfo & { in run() local
[all …]
H A DHotColdSplitting.cpp668 BFI = GetBFI(F); in outlineColdRegions()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DFunctionSpecialization.h260 std::function<BlockFrequencyInfo &(Function &)> GetBFI;
274 std::function<BlockFrequencyInfo &(Function &)> GetBFI,
278 : Solver(Solver), M(M), FAM(FAM), GetBFI(GetBFI), GetTLI(GetTLI),
286 auto &BFI = GetBFI(*F);
168 std::function<BlockFrequencyInfo &(Function &)> GetBFI; global() variable
180 FunctionSpecializer(SCCPSolver & Solver,Module & M,FunctionAnalysisManager * FAM,std::function<BlockFrequencyInfo & (Function &)> GetBFI,std::function<const TargetLibraryInfo & (Function &)> GetTLI,std::function<TargetTransformInfo & (Function &)> GetTTI,std::function<AssumptionCache & (Function &)> GetAC) FunctionSpecializer() argument
H A DHotColdSplitting.h43 : 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.h282 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr,
296 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr,
321 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr,
330 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr,
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineCost.cpp250 function_ref<BlockFrequencyInfo &(Function &)> GetBFI; member in __anon463f3bdb0111::CallAnalyzer
497 function_ref<BlockFrequencyInfo &(Function &)> GetBFI = nullptr, in CallAnalyzer() argument
500 : TTI(TTI), GetAssumptionCache(GetAssumptionCache), GetBFI(GetBFI), in CallAnalyzer()
690 GetAssumptionCache, GetBFI, PSI, ORE, false); in onLoweredCall()
757 assert(GetBFI && "GetBFI must be available"); in onBlockAnalyzed()
758 BlockFrequencyInfo *BFI = &(GetBFI(F)); in onBlockAnalyzed()
799 if (!GetBFI) in isCostBenefitAnalysisEnabled()
816 BlockFrequencyInfo *CallerBFI = &(GetBFI(*Caller)); in isCostBenefitAnalysisEnabled()
829 BlockFrequencyInfo *CalleeBFI = &(GetBFI(F)); in isCostBenefitAnalysisEnabled()
876 assert(GetBFI); in costBenefitAnalysis()
[all …]
H A DInlineOrder.cpp58 auto GetBFI = [&](Function &F) -> BlockFrequencyInfo & { in getInlineCostWrapper() local
71 GetBFI, PSI, RemarksEnabled ? &ORE : nullptr); in getInlineCostWrapper()
H A DInlineAdvisor.cpp147 auto GetBFI = [&](Function &F) -> BlockFrequencyInfo & { in getDefaultInlineAdvice() local
161 GetBFI, PSI, RemarksEnabled ? &ORE : nullptr); in getDefaultInlineAdvice()
/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()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp249 GetBFIFunc GetBFI;
258 LoopInfo &LI, GetBFIFunc GetBFI = std::nullopt)
259 : SE(SE), BPI(BPI), DT(DT), LI(LI), GetBFI(GetBFI) {}
948 if (GetBFI) { in parseLoopStructure()
949 BlockFrequencyInfo &BFI = (*GetBFI)(); in parseLoopStructure()
254 GetBFIFunc GetBFI; global() member in __anona4c10e620111::InductiveRangeCheckElimination
263 InductiveRangeCheckElimination(ScalarEvolution & SE,BranchProbabilityInfo * BPI,DominatorTree & DT,LoopInfo & LI,GetBFIFunc GetBFI=std::nullopt) InductiveRangeCheckElimination() argument