Home
last modified time | relevance | path

Searched refs:CtxProf (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOCtxProfFlattening.cpp124 void annotateIndirectCalls(Module &M, const CtxProfAnalysis::Result &CtxProf) { in annotateIndirectCalls() argument
125 const auto FlatIndCalls = CtxProf.flattenVirtCalls(); in annotateIndirectCalls()
161 auto &CtxProf = MAM.getResult<CtxProfAnalysis>(M); in run() local
165 if (!IsPreThinlink && !CtxProf.isInSpecializedModule()) in run()
169 annotateIndirectCalls(M, CtxProf); in run()
170 const auto FlattenedProfile = CtxProf.flatten(); in run()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DModuleInliner.cpp124 auto &CtxProf = MAM.getResult<CtxProfAnalysis>(M); in run() local
175 CtxProf.isInSpecializedModule() && CB->isIndirectCall()) { in run()
176 CtxProfAnalysis::collectIndirectCallPromotionList(*CB, CtxProf, in run()
183 if (auto *DirectCB = promoteCallWithIfThenElse(*CB, *Target, CtxProf)) in run()
237 InlineFunction(*CB, IFI, CtxProf, /*MergeAttributes=*/true, in run()
263 if (CtxProf.isInSpecializedModule()) in run()
H A DElimAvailExtern.cpp161 auto *CtxProf = MAM.getCachedResult<CtxProfAnalysis>(M); in run() local
169 M, /*Convert=*/(CtxProf && CtxProf->isInSpecializedModule()))) in run()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp580 PGOContextualProfile &CtxProf) { in promoteCallWithIfThenElse() argument
582 if (!CtxProf.isFunctionKnown(Callee)) in promoteCallWithIfThenElse()
593 const auto NewCSID = CtxProf.allocateNextCallsiteIndex(Caller); in promoteCallWithIfThenElse()
607 const uint32_t DirectID = CtxProf.allocateNextCounterIndex(Caller); in promoteCallWithIfThenElse()
608 const uint32_t IndirectID = CtxProf.allocateNextCounterIndex(Caller); in promoteCallWithIfThenElse()
660 CtxProf.update(ProfileUpdater, Caller); in promoteCallWithIfThenElse()
H A DInlineFunction.cpp2238 PGOContextualProfile &CtxProf, uint32_t CalleeCounters, in remapIndices() argument
2254 CalleeCounterMap[OldID] = CtxProf.allocateNextCounterIndex(Caller); in remapIndices()
2267 CalleeCallsiteMap[OldID] = CtxProf.allocateNextCallsiteIndex(Caller); in remapIndices()
2366 PGOContextualProfile &CtxProf, in InlineFunction() argument
2371 if (!CtxProf.isInSpecializedModule()) in InlineFunction()
2387 const auto NumCalleeCounters = CtxProf.getNumCounters(Callee); in InlineFunction()
2388 const auto NumCalleeCallsites = CtxProf.getNumCallsites(Callee); in InlineFunction()
2402 const auto IndicesMaps = remapIndices(Caller, StartBB, CtxProf, in InlineFunction()
2404 const uint32_t NewCountersSize = CtxProf.getNumCounters(Caller); in InlineFunction()
2457 CtxProf.update(Updater, Caller); in InlineFunction()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DCallPromotionUtils.h62 PGOContextualProfile &CtxProf);
H A DCloning.h327 PGOContextualProfile &CtxProf,