Lines Matching full:profiles

9 // This file implements the class that reads LLVM sample profiles. It
54 // It only applies to text, and binary format profiles.
55 // For ext-binary format profiles, the flag is set in the summary.
69 /// Dump all the function profiles found on stream \p OS.
72 sortFuncProfiles(Profiles, V); in dump()
136 /// Dump all the function profiles found on stream \p OS in the JSON format.
139 sortFuncProfiles(Profiles, V); in dumpJson()
229 // to skip profiles even they have no use for ThinLTO. in ParseLine()
368 FunctionSamples &FProfile = Profiles.create(FContext); in readImpl()
455 Profiles.erase(*FlatSample); in readImpl()
457 assert((CSProfileCount == 0 || CSProfileCount == Profiles.size()) && in readImpl()
461 TopLevelProbeProfileCount == Profiles.size()) && in readImpl()
462 "Cannot have both probe-based profiles and regular profiles"); in readImpl()
679 SampleProfileMap &Profiles) { in readFuncProfile() argument
691 auto Res = Profiles.try_emplace(Hash, FContext, FunctionSamples()); in readFuncProfile()
706 return readFuncProfile(Start, Profiles); in readFuncProfile()
762 // profiles, so skip reading the function offset table. in readOneSection()
799 // context in the module is found, the profiles of all its callees are in useFuncOffsetList()
800 // recursively loaded. A list is needed since the order of profiles matters. in useFuncOffsetList()
825 SampleProfileMap &Profiles) { in read() argument
831 if (std::error_code EC = readFuncProfiles(FuncsToUse, Profiles)) in read()
836 auto I = Profiles.find(FName); in read()
837 if (I != Profiles.end()) in read()
894 const DenseSet<StringRef> &FuncsToUse, SampleProfileMap &Profiles) { in readFuncProfiles() argument
911 // For each function in current module, load all context profiles for in readFuncProfiles()
953 if (std::error_code EC = readFuncProfile(FuncProfileAddr, Profiles)) in readFuncProfiles()
965 if (std::error_code EC = readFuncProfile(FuncProfileAddr, Profiles)) in readFuncProfiles()
976 if (std::error_code EC = readFuncProfile(FuncProfileAddr, Profiles)) in readFuncProfiles()
994 // profiles. in readFuncProfiles()
1002 // Load function profiles on demand. in readFuncProfiles()
1003 if (std::error_code EC = readFuncProfiles(FuncsToUse, Profiles)) in readFuncProfiles()
1007 assert((CSProfileCount == 0 || CSProfileCount == Profiles.size()) && in readFuncProfiles()
1311 bool ProfileHasAttribute, DenseSet<FunctionSamples *> &Profiles) { in readFuncMetadata() argument
1315 for (auto *FProfile : Profiles) { in readFuncMetadata()
1337 auto It = Profiles.find(FContext); in readFuncMetadata()
1338 if (It != Profiles.end()) in readFuncMetadata()
1727 // body, there will be identical replicated profiles for the in readOneFunctionProfile()
1730 FProfile = &Profiles[FunctionId(Name)]; in readOneFunctionProfile()
1829 assert(!ProfileIsFSDisciminator && "Gcc profiles not support FSDisciminator"); in readImpl()
2020 Summary = Builder.computeSummaryForProfiles(Profiles); in computeSummary()