Home
last modified time | relevance | path

Searched refs:ProfileCount (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSyntheticCountsPropagation.cpp38 using ProfileCount = Function::ProfileCount; typedef
134 Entry.first->setEntryCount(ProfileCount( in run()
H A DSampleProfile.cpp98 using ProfileCount = Function::ProfileCount; typedef
2269 F.setEntryCount(ProfileCount(initialEntryCount, Function::PCT_Real)); in runOnFunction()
H A DPartialInlining.cpp1415 Cloner.OrigFunc->setEntryCount(Function::ProfileCount( in tryPartialInline()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DProfileSummaryInfo.h118 std::optional<Function::ProfileCount> FunctionCount = getEntryCount(F); in isFunctionEntryHot()
326 std::optional<Function::ProfileCount> getEntryCount(const FuncT *F) const { in getEntryCount()
349 std::optional<Function::ProfileCount>
H A DBlockFrequencyInfoImpl.h1724 if (std::optional<uint64_t> ProfileCount =
1727 OS << ", count = " << *ProfileCount;
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DFunction.h289 class ProfileCount {
295 ProfileCount(uint64_t Count, ProfileCountType PCT) in ProfileCount() function
308 void setEntryCount(ProfileCount Count,
319 std::optional<ProfileCount> getEntryCount(bool AllowSynthetic = false) const;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMIRSampleProfile.cpp40 using ProfileCount = Function::ProfileCount; typedef
H A DMachineFunction.cpp1535 std::optional<Function::ProfileCount>
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileLoaderBaseImpl.h50 using ProfileCount = Function::ProfileCount; variable
1064 ProfileCount(Samples->getHeadSamples() + 1, Function::PCT_Real),
1097 ProfileCount(BlockWeights[EntryBB], Function::PCT_Real),
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DFunction.cpp76 using ProfileCount = Function::ProfileCount; typedef
2026 void Function::setEntryCount(ProfileCount Count, in setEntryCount()
2045 setEntryCount(ProfileCount(Count, Type), Imports); in setEntryCount()
2048 std::optional<ProfileCount> Function::getEntryCount(bool AllowSynthetic) const { in getEntryCount()
2059 return ProfileCount(Count, PCT_Real); in getEntryCount()
2064 return ProfileCount(Count, PCT_Synthetic); in getEntryCount()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionImportUtils.cpp232 F->setEntryCount(Function::ProfileCount(FS->entryCount(), in processGlobalForThinLTO()
H A DCodeExtractor.cpp72 using ProfileCount = Function::ProfileCount; typedef
1868 ProfileCount(*Count, Function::PCT_Real)); // FIXME in extractCodeRegion()
H A DInlineFunction.cpp85 using ProfileCount = Function::ProfileCount; typedef
1965 const ProfileCount &CalleeEntryCount, in updateCallProfile()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp161 static CalleeInfo::HotnessType getHotness(uint64_t ProfileCount, in getHotness() argument
165 if (PSI->isHotCount(ProfileCount)) in getHotness()
167 if (PSI->isColdCount(ProfileCount)) in getHotness()
H A DInlineCost.cpp760 auto ProfileCount = BFI->getBlockProfileCount(BB); in onBlockAnalyzed() local
761 if (*ProfileCount == 0) in onBlockAnalyzed()
913 auto ProfileCount = CalleeBFI->getBlockProfileCount(&BB); in costBenefitAnalysis() local
914 CurrentSavings *= *ProfileCount; in costBenefitAnalysis()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp352 BranchInst *MergedBR, uint64_t ProfileCount);
1704 std::optional<uint64_t> ProfileCount = BFI.getBlockProfileCount(EntryBlock); in transformScopes() local
1757 ProfileCount.value_or(0)); in transformScopes()
1851 uint64_t ProfileCount) { in fixupBranchesAndSelects() argument
1868 Stats.WeightedNumBranchesDelta += (NumCHRedBranches - 1) * ProfileCount; in fixupBranchesAndSelects()
H A DPGOInstrumentation.cpp130 using ProfileCount = Function::ProfileCount; typedef
1599 F.setEntryCount(ProfileCount(FuncEntryCount, Function::PCT_Real)); in populateCounters()
1968 F.setEntryCount(ProfileCount(NewEntryCount, Function::PCT_Real)); in fixFuncEntryCount()
2151 F.setEntryCount(ProfileCount(0, Function::PCT_Real)); in annotateAllFunctions()