Searched refs:ContextTracker (Results 1 – 6 of 6) sorted by relevance
| /llvm-project-15.0.7/llvm/tools/llvm-profgen/ |
| H A D | CSPreInliner.cpp | 64 ContextTracker(Tracker), Binary(Binary), Summary(Summary) { in CSPreInliner() 77 ProfiledCallGraph ProfiledCG(ContextTracker); in buildTopDownOrder() 109 ContextTracker.getContextNodeForProfile(CallerSamples); in getInlineCandidates() 186 FunctionSamples *FSamples = ContextTracker.getBaseSamplesFor(Name); in processFunction() 191 getFuncSize(ContextTracker.getContextNodeForProfile(FSamples)); in processFunction() 212 ContextTracker.markContextSamplesInlined(Candidate.CalleeSamples); in processFunction() 260 auto printProfileNames = [](SampleContextTracker &ContextTracker, in run() 263 for (auto *Node : ContextTracker) { in run() 277 LLVM_DEBUG(printProfileNames(ContextTracker, true)); in run() 292 for (auto *Node : ContextTracker) { in run() [all …]
|
| H A D | ProfileGenerator.h | 187 : ProfileGeneratorBase(Binary), ContextTracker(Profiles, nullptr){}; in CSProfileGenerator() 361 ContextTrieNode &getRootContext() { return ContextTracker.getRootContext(); }; in getRootContext() 369 SampleContextTracker ContextTracker; variable
|
| H A D | CSPreInliner.h | 82 SampleContextTracker &ContextTracker; variable
|
| H A D | ProfileGenerator.cpp | 459 for (auto *Node : ContextTracker) { in collectFunctionsFromLLVMProfile() 764 ContextTracker.getOrCreateContextPath(Context, true); in getOrCreateContextNode() 801 for (auto *Node : ContextTracker) { in updateFunctionSamples() 988 ContextTracker.populateFuncToCtxtMap(); in postProcessProfiles() 989 CSPreInliner(ContextTracker, *Binary, Summary.get()).run(); in postProcessProfiles() 1032 ContextTracker.createContextLessProfileMap(ContextLessProfiles); in computeSummaryAndThreshold()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/ |
| H A D | ProfiledCallGraph.h | 76 ProfiledCallGraph(SampleContextTracker &ContextTracker) { in ProfiledCallGraph() argument 80 for (auto &Child : ContextTracker.getRootContext().getAllChildContext()) { in ProfiledCallGraph() 82 addProfiledFunction(ContextTracker.getFuncNameFor(Callee)); in ProfiledCallGraph() 99 addProfiledFunction(ContextTracker.getFuncNameFor(Callee)); in ProfiledCallGraph() 120 addProfiledCall(ContextTracker.getFuncNameFor(Caller), in ProfiledCallGraph() 121 ContextTracker.getFuncNameFor(Callee), Weight); in ProfiledCallGraph()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | SampleProfile.cpp | 495 std::unique_ptr<SampleContextTracker> ContextTracker; member in __anonb9d8ce480111::SampleProfileLoader 665 return ContextTracker->getCalleeContextSamplesFor(Inst, CalleeName); in findCalleeFunctionSamples() 698 ContextTracker->getIndirectCalleeContextSamplesFor(DIL); in findIndirectCallFunctionSamples() 750 it.first->second = ContextTracker->getContextSamplesFor(DIL); in findFunctionSamples() 1029 ContextTrieNode *Caller = ContextTracker->getContextNodeForProfile(Samples); in findExternalInlineCandidate() 1241 ContextTracker->markContextSamplesInlined(Candidate.CalleeSamples); in tryInlineCandidate() 1468 } else if (!ContextTracker) { in inlineHotFunctionsWithPriority() 1481 } else if (!ContextTracker) { in inlineHotFunctionsWithPriority() 1786 ProfiledCG = std::make_unique<ProfiledCallGraph>(*ContextTracker); in buildProfiledCallGraph() 2000 ContextTracker = std::make_unique<SampleContextTracker>( in doInitialization() [all …]
|