Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DFunction.h292 class ProfileCount {
296 static ProfileCount Invalid;
299 ProfileCount() : Count(-1), PCT(PCT_Invalid) {} in ProfileCount() function
300 ProfileCount(uint64_t Count, ProfileCountType PCT) in ProfileCount() function
309 ProfileCount &setCount(uint64_t C) { in setCount()
313 static ProfileCount getInvalid() { return ProfileCount(-1, PCT_Invalid); } in getInvalid()
322 void setEntryCount(ProfileCount Count,
333 ProfileCount getEntryCount(bool AllowSynthetic = false) const;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DSyntheticCountsPropagation.cpp43 using ProfileCount = Function::ProfileCount; typedef
140 Entry.first->setEntryCount(ProfileCount( in run()
H A DSampleProfile.cpp104 using ProfileCount = Function::ProfileCount; typedef
1952 F.setEntryCount(ProfileCount(initialEntryCount, Function::PCT_Real)); in runOnFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DFunction.cpp73 using ProfileCount = Function::ProfileCount; typedef
1802 void Function::setEntryCount(ProfileCount Count, in setEntryCount()
1822 setEntryCount(ProfileCount(Count, Type), Imports); in setEntryCount()
1825 ProfileCount Function::getEntryCount(bool AllowSynthetic) const { in getEntryCount()
1835 return ProfileCount::getInvalid(); in getEntryCount()
1836 return ProfileCount(Count, PCT_Real); in getEntryCount()
1841 return ProfileCount(Count, PCT_Synthetic); in getEntryCount()
1844 return ProfileCount::getInvalid(); in getEntryCount()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileLoaderBaseImpl.h46 using ProfileCount = Function::ProfileCount; variable
832 ProfileCount(Samples->getHeadSamples() + 1, Function::PCT_Real),
/netbsd-src/external/apache2/llvm/dist/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);
1697 Optional<uint64_t> ProfileCount = BFI.getBlockProfileCount(EntryBlock); in transformScopes() local
1750 ProfileCount ? ProfileCount.getValue() : 0); in transformScopes()
1838 uint64_t ProfileCount) { in fixupBranchesAndSelects() argument
1855 Stats.WeightedNumBranchesDelta += (NumCHRedBranches - 1) * ProfileCount; in fixupBranchesAndSelects()
/netbsd-src/external/apache2/llvm/dist/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.cpp640 auto ProfileCount = BFI->getBlockProfileCount(BB); in onBlockAnalyzed() local
641 assert(ProfileCount.hasValue()); in onBlockAnalyzed()
642 if (ProfileCount.getValue() == 0) in onBlockAnalyzed()
765 auto ProfileCount = CalleeBFI->getBlockProfileCount(&BB); in costBenefitAnalysis() local
766 assert(ProfileCount.hasValue()); in costBenefitAnalysis()
767 CurrentSavings *= ProfileCount.getValue(); in costBenefitAnalysis()
/netbsd-src/external/apache2/llvm/dist/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
1708 ProfileCount(Count.getValue(), Function::PCT_Real)); // FIXME in extractCodeRegion()
H A DInlineFunction.cpp78 using ProfileCount = Function::ProfileCount; typedef
1604 const ProfileCount &CalleeEntryCount, in updateCallProfile()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DBlockFrequencyInfoImpl.h1406 if (Optional<uint64_t> ProfileCount =
1409 OS << ", count = " << ProfileCount.getValue();