Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DFunction.h293 class ProfileCount {
297 static ProfileCount Invalid;
300 ProfileCount() : Count(-1), PCT(PCT_Invalid) {} in ProfileCount() function
301 ProfileCount(uint64_t Count, ProfileCountType PCT) in ProfileCount() function
310 ProfileCount &setCount(uint64_t C) { in setCount()
314 static ProfileCount getInvalid() { return ProfileCount(-1, PCT_Invalid); } in getInvalid()
323 void setEntryCount(ProfileCount Count,
334 ProfileCount getEntryCount(bool AllowSynthetic = false) const;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSyntheticCountsPropagation.cpp43 using ProfileCount = Function::ProfileCount; typedef
140 Entry.first->setEntryCount(ProfileCount( in run()
H A DSampleProfile.cpp105 using ProfileCount = Function::ProfileCount; typedef
1960 F.setEntryCount(ProfileCount(initialEntryCount, Function::PCT_Real)); in runOnFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DFunction.cpp74 using ProfileCount = Function::ProfileCount; typedef
1847 void Function::setEntryCount(ProfileCount Count, in setEntryCount()
1867 setEntryCount(ProfileCount(Count, Type), Imports); in setEntryCount()
1870 ProfileCount Function::getEntryCount(bool AllowSynthetic) const { in getEntryCount()
1880 return ProfileCount::getInvalid(); in getEntryCount()
1881 return ProfileCount(Count, PCT_Real); in getEntryCount()
1886 return ProfileCount(Count, PCT_Synthetic); in getEntryCount()
1889 return ProfileCount::getInvalid(); in getEntryCount()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileLoaderBaseImpl.h46 using ProfileCount = Function::ProfileCount; variable
835 ProfileCount(Samples->getHeadSamples() + 1, Function::PCT_Real),
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionImportUtils.cpp207 F->setEntryCount(Function::ProfileCount(FS->entryCount(), in processGlobalForThinLTO()
H A DCodeExtractor.cpp75 using ProfileCount = Function::ProfileCount; typedef
1711 ProfileCount(Count.getValue(), Function::PCT_Real)); // FIXME in extractCodeRegion()
H A DInlineFunction.cpp78 using ProfileCount = Function::ProfileCount; typedef
1607 const ProfileCount &CalleeEntryCount, in updateCallProfile()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp124 using ProfileCount = Function::ProfileCount; typedef
1422 F.setEntryCount(ProfileCount(FuncEntryCount, Function::PCT_Real)); in populateCounters()
1712 F.setEntryCount(ProfileCount(NewEntryCount, Function::PCT_Real)); in fixFuncEntryCount()
1869 F.setEntryCount(ProfileCount(0, Function::PCT_Real)); in annotateAllFunctions()
1879 ProfileCount(HotThreshold * MultiplyFactor, Function::PCT_Real)); in annotateAllFunctions()
H A DControlHeightReduction.cpp385 uint64_t ProfileCount);
1702 Optional<uint64_t> ProfileCount = BFI.getBlockProfileCount(EntryBlock); in transformScopes() local
1755 ProfileCount ? ProfileCount.getValue() : 0); in transformScopes()
1843 uint64_t ProfileCount) { in fixupBranchesAndSelects() argument
1860 Stats.WeightedNumBranchesDelta += (NumCHRedBranches - 1) * ProfileCount; in fixupBranchesAndSelects()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp125 static CalleeInfo::HotnessType getHotness(uint64_t ProfileCount, in getHotness() argument
129 if (PSI->isHotCount(ProfileCount)) in getHotness()
131 if (PSI->isColdCount(ProfileCount)) in getHotness()
H A DInlineCost.cpp653 auto ProfileCount = BFI->getBlockProfileCount(BB); in onBlockAnalyzed() local
654 assert(ProfileCount.hasValue()); in onBlockAnalyzed()
655 if (ProfileCount.getValue() == 0) in onBlockAnalyzed()
778 auto ProfileCount = CalleeBFI->getBlockProfileCount(&BB); in costBenefitAnalysis() local
779 assert(ProfileCount.hasValue()); in costBenefitAnalysis()
780 CurrentSavings *= ProfileCount.getValue(); in costBenefitAnalysis()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DBlockFrequencyInfoImpl.h1737 if (Optional<uint64_t> ProfileCount =
1740 OS << ", count = " << ProfileCount.getValue();