Home
last modified time | relevance | path

Searched refs:TotalCount (Results 1 – 18 of 18) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp197 uint64_t TotalCount, uint32_t NumCandidates);
203 uint64_t &TotalCount);
222 uint64_t TotalCount, uint32_t NumCandidates) { in getPromotionCandidatesForCallSite() argument
236 assert(Count <= TotalCount); in getPromotionCandidatesForCallSite()
298 TotalCount -= Count; in getPromotionCandidatesForCallSite()
304 uint64_t Count, uint64_t TotalCount, in promoteIndirectCall() argument
308 uint64_t ElseCount = TotalCount - Count; in promoteIndirectCall()
332 << NV("TotalCount", TotalCount); in promoteIndirectCall()
340 uint64_t &TotalCount) { in tryToPromote() argument
345 pgo::promoteIndirectCall(CB, C.TargetFunction, Count, TotalCount, SamplePGO, in tryToPromote()
[all …]
H A DPGOMemOPSizeOpt.cpp276 static bool isProfitable(uint64_t Count, uint64_t TotalCount) { in isProfitable() argument
277 assert(Count <= TotalCount); in isProfitable()
280 if (Count < TotalCount * MemOPPercentThreshold / 100) in isProfitable()
302 uint64_t TotalCount; in perform() local
304 ValueDataArray.get(), NumVals, TotalCount)) in perform()
307 uint64_t ActualCount = TotalCount; in perform()
308 uint64_t SavedTotalCount = TotalCount; in perform()
327 if (TotalCount == 0) in perform()
330 TotalCount = ActualCount; in perform()
336 uint64_t RemainCount = TotalCount; in perform()
[all …]
H A DPGOInstrumentation.cpp1513 uint64_t TotalCount = 0; in annotateOneSelectInst() local
1516 TotalCount = BI->CountValue; in annotateOneSelectInst()
1518 SCounts[1] = (TotalCount > SCounts[0] ? TotalCount - SCounts[0] : 0); in annotateOneSelectInst()
2054 uint64_t TotalCount = in setProfMetadata() local
2063 OS << " (total count : " << TotalCount << ")"; in setProfMetadata()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DIndirectCallPromotionAnalysis.cpp58 uint64_t TotalCount, in isPromotionProfitable() argument
61 Count * 100 >= ICPTotalPercentThreshold * TotalCount; in isPromotionProfitable()
68 const Instruction *Inst, uint32_t NumVals, uint64_t TotalCount) { in getProfitablePromotionCandidates() argument
75 uint64_t RemainingCount = TotalCount; in getProfitablePromotionCandidates()
82 if (!isPromotionProfitable(Count, TotalCount, RemainingCount)) { in getProfitablePromotionCandidates()
93 const Instruction *I, uint32_t &NumVals, uint64_t &TotalCount, in getPromotionCandidatesForInstruction() argument
97 ValueDataArray.get(), NumVals, TotalCount); in getPromotionCandidatesForInstruction()
102 NumCandidates = getProfitablePromotionCandidates(I, NumVals, TotalCount); in getPromotionCandidatesForInstruction()
H A DProfileSummaryInfo.cpp86 uint64_t TotalCount; in getProfileCount() local
87 if (Call.extractProfTotalWeight(TotalCount)) in getProfileCount()
88 return TotalCount; in getProfileCount()
H A DModuleSummaryAnalysis.cpp380 uint64_t TotalCount; in computeFunctionSummary() local
383 &I, NumVals, TotalCount, NumCandidates); in computeFunctionSummary()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DProfileSummary.h52 uint64_t TotalCount, MaxCount, MaxInternalCount, MaxFunctionCount; variable
72 uint64_t TotalCount, uint64_t MaxCount,
77 TotalCount(TotalCount), MaxCount(MaxCount), in PSK()
92 uint64_t getTotalCount() { return TotalCount; } in getTotalCount()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DIndirectCallPromotionAnalysis.h33 bool isPromotionProfitable(uint64_t Count, uint64_t TotalCount,
40 uint64_t TotalCount);
62 uint64_t &TotalCount,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ProfileData/
H A DProfileSummaryBuilder.cpp139 APInt Temp(128, TotalCount); in computeDetailedSummary()
145 assert(DesiredCount <= TotalCount); in computeDetailedSummary()
180 ProfileSummary::PSK_Sample, DetailedSummary, TotalCount, MaxCount, 0, in getSummary()
216 ProfileSummary::PSK_Instr, DetailedSummary, TotalCount, MaxCount, in getSummary()
H A DSampleProfReader.cpp1239 auto TotalCount = readNumber<uint64_t>(); in readSummary() local
1240 if (std::error_code EC = TotalCount.getError()) in readSummary()
1270 ProfileSummary::PSK_Sample, Entries, *TotalCount, *MaxBlockCount, 0, in readSummary()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DProfileSummary.cpp215 uint64_t NumCounts, TotalCount, NumFunctions, MaxFunctionCount, MaxCount, in getFromMD() local
218 TotalCount)) in getFromMD()
246 return new ProfileSummary(SummaryKind, std::move(Summary), TotalCount, in getFromMD()
257 OS << "Total count: " << TotalCount << "\n"; in printSummary()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ProfileData/
H A DProfileCommon.h50 uint64_t TotalCount = 0; variable
102 TotalCount += Count; in addCount()
H A DInstrProf.h895 uint64_t &TotalCount = (TotalC == nullptr ? Dummy : *TotalC); in getValueForSite() local
898 TotalCount = 0; in getValueForSite()
903 TotalCount = getValueForSite(VD.get(), ValueKind, Site); in getValueForSite()
912 uint64_t TotalCount = 0; in getValueForSite() local
916 TotalCount = SaturatingAdd(TotalCount, V.Count); in getValueForSite()
919 return TotalCount; in getValueForSite()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/
H A DInstrumentation.h116 uint64_t TotalCount, bool AttachProfToDirectCall,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp542 auto TotalCount = [] (const MachineBasicBlock *B, unsigned &Spare) { in isProfitable() local
554 unsigned TotalIn = TotalCount(FP.TrueB, Spare) + TotalCount(FP.FalseB, Spare); in isProfitable()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp2241 uint64_t TotalCount; member
2247 : FuncName(), TotalCount(0), TotalCountPercent(0.0f), MaxCount(0), in HotFuncInfo()
2251 : FuncName(FN), TotalCount(TS), TotalCountPercent(TSP), MaxCount(MS), in HotFuncInfo()
2298 FOS << R.TotalCount << " (" << format("%.2f%%", R.TotalCountPercent) << ")"; in dumpHotFunctionList()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp740 uint64_t TotalCount = 0; in doesHistoryAllowICP() local
745 ValueData.get(), NumVals, TotalCount, true); in doesHistoryAllowICP()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DASTImporter.cpp3762 unsigned int TotalCount; member
3838 assert(ImportedEquivalentFriends.size() <= CountAndPosition.TotalCount && in VisitFriendDecl()
3840 if (ImportedEquivalentFriends.size() == CountAndPosition.TotalCount) in VisitFriendDecl()