Home
last modified time | relevance | path

Searched refs:ProfileMap (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/llvm/lib/ProfileData/
H A DSampleProfWriter.cpp46 sortFuncProfiles(ProfileMap, V); in writeFuncProfiles()
258 const SampleProfileMap &ProfileMap) { in writeNameTableSection() argument
259 for (const auto &I : ProfileMap) { in writeNameTableSection()
337 computeSummary(ProfileMap); in writeOneSection()
377 const SampleProfileMap &ProfileMap) { in writeDefaultLayout() argument
402 for (const auto &I : ProfileMap) { in splitProfileMapToTwo()
411 const SampleProfileMap &ProfileMap) { in writeCtxSplitLayout() argument
442 const SampleProfileMap &ProfileMap) { in writeSections() argument
445 EC = writeDefaultLayout(ProfileMap); in writeSections()
655 computeSummary(ProfileMap); in writeHeader()
[all …]
H A DSampleProf.cpp202 const SampleProfileMap &ProfileMap, in sortFuncProfiles() argument
204 for (const auto &I : ProfileMap) { in sortFuncProfiles()
361 for (const auto &I : ProfileMap) { in trimAndMergeColdContextProfiles()
381 ProfileMap.erase(I.first); in trimAndMergeColdContextProfiles()
388 ProfileMap.find(I.first) == ProfileMap.end()) in trimAndMergeColdContextProfiles()
392 auto Ret = ProfileMap.emplace(I.first, FunctionSamples()); in trimAndMergeColdContextProfiles()
406 for (auto &I : ProfileMap) { in canonicalizeContextProfiles()
431 ProfileMap.erase(I); in canonicalizeContextProfiles()
435 ProfileMap.emplace(I.first, I.second); in canonicalizeContextProfiles()
480 : ProfileMap(Profiles) { in CSProfileConverter()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ProfileData/
H A DSampleProfWriter.h51 virtual std::error_code write(const SampleProfileMap &ProfileMap);
77 virtual std::error_code writeHeader(const SampleProfileMap &ProfileMap) = 0;
89 void computeSummary(const SampleProfileMap &ProfileMap);
104 std::error_code writeHeader(const SampleProfileMap &ProfileMap) override { in writeHeader() argument
131 std::error_code writeHeader(const SampleProfileMap &ProfileMap) override;
189 std::error_code write(const SampleProfileMap &ProfileMap) override;
289 std::error_code writeHeader(const SampleProfileMap &ProfileMap) override;
331 std::error_code writeDefaultLayout(const SampleProfileMap &ProfileMap);
332 std::error_code writeCtxSplitLayout(const SampleProfileMap &ProfileMap);
381 std::error_code write(const SampleProfileMap &ProfileMap) override;
[all …]
H A DSampleProf.h1191 void sortFuncProfiles(const SampleProfileMap &ProfileMap,
1222 SampleContextTrimmer(SampleProfileMap &Profiles) : ProfileMap(Profiles){};
1239 SampleProfileMap &ProfileMap;
1272 SampleProfileMap &ProfileMap;
/llvm-project-15.0.7/llvm/tools/llvm-profgen/
H A DProfileGenerator.cpp384 for (auto &Item : ProfileMap) { in updateTotalSamples()
391 for (auto &Item : ProfileMap) { in updateCallsiteSamples()
450 for (const auto &FS : ProfileMap) { in collectFunctionsFromLLVMProfile()
496 computeSummaryAndThreshold(ProfileMap); in postProcessProfiles()
498 calculateAndShowDensity(ProfileMap); in postProcessProfiles()
508 for (const auto &I : ProfileMap) { in trimColdProfiles()
515 ProfileMap.erase(I); in trimColdProfiles()
968 assert(ProfileMap.empty() && in convertToProfileMap()
999 SampleContextTrimmer(ProfileMap) in postProcessProfiles()
1007 for (const auto &I : ProfileMap) { in postProcessProfiles()
[all …]
H A DProfileGenerator.h41 : Binary(Binary), ProfileMap(std::move(Profiles)){}; in ProfileGeneratorBase()
48 create(ProfiledBinary *Binary, SampleProfileMap &ProfileMap,
74 SampleProfileMap &ProfileMap);
113 void computeSummaryAndThreshold(SampleProfileMap &ProfileMap);
141 SampleProfileMap ProfileMap; variable
/llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/
H A DProfiledCallGraph.h67 ProfiledCallGraph(SampleProfileMap &ProfileMap) { in ProfiledCallGraph() argument
70 for (const auto &Samples : ProfileMap) { in ProfiledCallGraph()
/llvm-project-15.0.7/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp753 SampleProfileMap ProfileMap; in mergeSampleProfile() local
796 MergeResult(Result, ProfileMap[FContext].merge(Samples, Input.Weight)); in mergeSampleProfile()
813 auto Summary = Builder.computeSummaryForProfiles(ProfileMap); in mergeSampleProfile()
819 SampleContextTrimmer(ProfileMap) in mergeSampleProfile()
826 CSProfileConverter CSConverter(ProfileMap); in mergeSampleProfile()
842 if (std::error_code EC = Writer->write(ProfileMap)) in mergeSampleProfile()