Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DSyntheticCountsPropagation.cpp38 using ProfileCount = Function::ProfileCount; typedef
134 Entry.first->setEntryCount(ProfileCount( in run()
H A DSampleProfile.cpp95 using ProfileCount = Function::ProfileCount; typedef
2126 F.setEntryCount(ProfileCount(initialEntryCount, Function::PCT_Real)); in runOnFunction()
H A DPartialInlining.cpp1465 Cloner.OrigFunc->setEntryCount(Function::ProfileCount( in tryPartialInline()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DFunction.h253 class ProfileCount {
259 ProfileCount(uint64_t Count, ProfileCountType PCT) in ProfileCount() function
272 void setEntryCount(ProfileCount Count,
283 Optional<ProfileCount> getEntryCount(bool AllowSynthetic = false) const;
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileLoaderBaseImpl.h47 using ProfileCount = Function::ProfileCount; variable
894 ProfileCount(Samples->getHeadSamples() + 1, Function::PCT_Real),
928 ProfileCount(BlockWeights[EntryBB], Function::PCT_Real),
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMIRSampleProfile.cpp36 using ProfileCount = Function::ProfileCount; typedef
/llvm-project-15.0.7/llvm/lib/IR/
H A DFunction.cpp73 using ProfileCount = Function::ProfileCount; typedef
1973 void Function::setEntryCount(ProfileCount Count, in setEntryCount()
1992 setEntryCount(ProfileCount(Count, Type), Imports); in setEntryCount()
1995 Optional<ProfileCount> Function::getEntryCount(bool AllowSynthetic) const { in getEntryCount()
2006 return ProfileCount(Count, PCT_Real); in getEntryCount()
2011 return ProfileCount(Count, PCT_Synthetic); in getEntryCount()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp124 using ProfileCount = Function::ProfileCount; typedef
1374 F.setEntryCount(ProfileCount(FuncEntryCount, Function::PCT_Real)); in populateCounters()
1652 F.setEntryCount(ProfileCount(NewEntryCount, Function::PCT_Real)); in fixFuncEntryCount()
1821 F.setEntryCount(ProfileCount(0, Function::PCT_Real)); in annotateAllFunctions()
1831 ProfileCount(HotThreshold * MultiplyFactor, Function::PCT_Real)); in annotateAllFunctions()
H A DControlHeightReduction.cpp345 uint64_t ProfileCount);
1674 Optional<uint64_t> ProfileCount = BFI.getBlockProfileCount(EntryBlock); in transformScopes() local
1727 ProfileCount.value_or(0)); in transformScopes()
1815 uint64_t ProfileCount) { in fixupBranchesAndSelects() argument
1832 Stats.WeightedNumBranchesDelta += (NumCHRedBranches - 1) * ProfileCount; in fixupBranchesAndSelects()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp124 static CalleeInfo::HotnessType getHotness(uint64_t ProfileCount, in getHotness() argument
128 if (PSI->isHotCount(ProfileCount)) in getHotness()
130 if (PSI->isColdCount(ProfileCount)) in getHotness()
H A DInlineCost.cpp709 auto ProfileCount = BFI->getBlockProfileCount(BB); in onBlockAnalyzed() local
710 assert(ProfileCount); in onBlockAnalyzed()
711 if (ProfileCount.value() == 0) in onBlockAnalyzed()
834 auto ProfileCount = CalleeBFI->getBlockProfileCount(&BB); in costBenefitAnalysis() local
835 assert(ProfileCount); in costBenefitAnalysis()
836 CurrentSavings *= ProfileCount.value(); in costBenefitAnalysis()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DFunctionImportUtils.cpp212 F->setEntryCount(Function::ProfileCount(FS->entryCount(), in processGlobalForThinLTO()
H A DCodeExtractor.cpp73 using ProfileCount = Function::ProfileCount; typedef
1781 ProfileCount(Count.value(), Function::PCT_Real)); // FIXME in extractCodeRegion()
H A DInlineFunction.cpp78 using ProfileCount = Function::ProfileCount; typedef
1634 const ProfileCount &CalleeEntryCount, in updateCallProfile()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DBlockFrequencyInfoImpl.h1732 if (Optional<uint64_t> ProfileCount =
1735 OS << ", count = " << ProfileCount.value();