| /llvm-project-15.0.7/lldb/unittests/Core/ |
| H A D | MangledTest.cpp | 231 EXPECT_EQ(1, Count("main", eFunctionNameTypeFull)); in TEST() 232 EXPECT_EQ(1, Count("main", eFunctionNameTypeBase)); in TEST() 238 EXPECT_EQ(1, Count("foo", eFunctionNameTypeBase)); in TEST() 244 EXPECT_EQ(2, Count("puts", eFunctionNameTypeFull)); in TEST() 245 EXPECT_EQ(2, Count("puts", eFunctionNameTypeBase)); in TEST() 258 EXPECT_EQ(1, Count("A", eFunctionNameTypeMethod)); in TEST() 259 EXPECT_EQ(0, Count("A", eFunctionNameTypeBase)); in TEST() 264 EXPECT_EQ(1, Count("~A", eFunctionNameTypeMethod)); in TEST() 265 EXPECT_EQ(0, Count("~A", eFunctionNameTypeBase)); in TEST() 271 EXPECT_EQ(0, Count("bar", eFunctionNameTypeBase)); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | LEB128.h | 33 Count++; 42 for (; Count < PadTo - 1; ++Count) 45 Count++; 47 return Count; 62 Count++; 71 for (; Count < PadTo - 1; ++Count) 86 Count++; 94 for (; Count < PadTo - 1; ++Count) 97 Count++; 111 Count++; [all …]
|
| H A D | DebugCounter.h | 82 ++CounterInfo.Count; in shouldExecute() 89 if (CounterInfo.Skip >= CounterInfo.Count) in shouldExecute() 93 return CounterInfo.StopAfter + CounterInfo.Skip >= CounterInfo.Count; in shouldExecute() 111 return Result->second.Count; in getCounterValue() 115 static void setCounterValue(unsigned ID, int64_t Count) { in setCounterValue() argument 117 Us.Counters[ID].Count = Count; in setCounterValue() 170 int64_t Count = 0; member
|
| /llvm-project-15.0.7/llvm/unittests/CodeGen/ |
| H A D | PassManagerTest.cpp | 33 Result(int Count) : InstructionCount(Count) {} in Result() 39 int Count = 0; in run() local 43 ++Count; in run() 58 Result(int Count) : InstructionCount(Count) {} in Result() 86 : Count(Count), BeforeInitialization(BeforeInitialization), in TestMachineFunctionPass() 96 ++Count; in doInitialization() 106 ++Count; in doFinalization() 136 int &Count; member 160 int &Count; member 235 int Count = 0; in TEST_F() local [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | local_cache.h | 26 Count = N; in setFromArray() 29 void clear() { Count = 0; } in clear() 32 Batch[Count++] = P; in add() 39 DCHECK_LE(I, Count); in get() 48 u32 Count; 69 if (C->Count == 0) { in allocate() 72 DCHECK_GT(C->Count, 0); in allocate() 94 C->Chunks[C->Count++] = in deallocate() 132 u32 Count; member 183 const u32 Count = Min(C->MaxCount / 2, C->Count); in drain() local [all …]
|
| H A D | quarantine.h | 24 u32 Count; member 28 Count = 1; in init() 37 DCHECK_LT(Count, MaxCount); in push_back() 38 Batch[Count++] = Ptr; in push_back() 43 return Count + From->Count <= MaxCount; in canMerge() 47 DCHECK_LE(Count + From->Count, MaxCount); in merge() 51 Batch[Count + I] = From->Batch[I]; in merge() 52 Count += From->Count; in merge() 55 From->Count = 0; in merge() 115 DCHECK_EQ(Extracted->Count, 0); in mergeBatches() [all …]
|
| /llvm-project-15.0.7/bolt/lib/Core/ |
| H A D | BinaryFunctionProfile.cpp | 114 if (!BI.Count) { in postProcessProfile() 127 uint64_t Count = SuccBIIter->Count; in postProcessProfile() local 128 if (Count != BinaryBasicBlock::COUNT_NO_PROFILE && Count > 0) { in postProcessProfile() 168 JT->Count += TotalBranchCount; in postProcessProfile() 184 JT->Counts[Delta].Count += BranchInfo.Count; in postProcessProfile() 235 BIMergeI->Count += BII->Count; in mergeProfileDataInto() 263 CountMergeI->Count += JI.Count; in mergeProfileDataInto() 291 ReportedBranches += SuccBI.Count; in inferFallThroughCounts() 335 if (SuccBI.Count == 0) { in inferFallThroughCounts() 336 SuccBI.Count = Inferred; in inferFallThroughCounts() [all …]
|
| H A D | BinaryBasicBlock.cpp | 349 uint64_t Count = COUNT_NO_PROFILE; in removeDuplicateConditionalSuccessor() local 350 if (CondBI.Count != COUNT_NO_PROFILE && UncondBI.Count != COUNT_NO_PROFILE) in removeDuplicateConditionalSuccessor() 351 Count = CondBI.Count + UncondBI.Count; in removeDuplicateConditionalSuccessor() 352 BranchInfo.push_back({Count, 0}); in removeDuplicateConditionalSuccessor() 387 double NewCount = Count * Ratio; in adjustExecutionCount() 388 if (!NewCount && Count && (Ratio > 0.0)) in adjustExecutionCount() 395 if (BI.Count != COUNT_NO_PROFILE) in adjustExecutionCount() 396 BI.Count = adjustedCount(BI.Count); in adjustExecutionCount() 540 if (BI.Count != COUNT_NO_PROFILE) { in getBranchStats() 541 TotalCount += BI.Count; in getBranchStats() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MachineSizeOpts.cpp | 34 auto Count = MBFI->getBlockProfileCount(MBB); in isColdBlock() local 35 return Count && PSI->isColdCount(*Count); in isColdBlock() 41 auto Count = MBFI->getProfileCountFromFreq(BlockFreq.getFrequency()); in isColdBlock() local 42 return Count && PSI->isColdCount(*Count); in isColdBlock() 50 auto Count = MBFI->getBlockProfileCount(MBB); in isHotBlockNthPercentile() local 51 return Count && PSI->isHotCountNthPercentile(PercentileCutoff, *Count); in isHotBlockNthPercentile() 58 auto Count = MBFI->getProfileCountFromFreq(BlockFreq.getFrequency()); in isHotBlockNthPercentile() local 59 return Count && PSI->isHotCountNthPercentile(PercentileCutoff, *Count); in isHotBlockNthPercentile() 66 auto Count = MBFI->getBlockProfileCount(MBB); in isColdBlockNthPercentile() local 67 return Count && PSI->isColdCountNthPercentile(PercentileCutoff, *Count); in isColdBlockNthPercentile() [all …]
|
| /llvm-project-15.0.7/llvm/lib/ProfileData/ |
| H A D | ProfileSummaryBuilder.cpp | 118 addCount(Count); in addRecord() 135 uint64_t CurrSum = 0, Count = 0; in computeDetailedSummary() local 147 Count = Iter->first; in computeDetailedSummary() 149 CurrSum += (Count * Freq); in computeDetailedSummary() 226 if (Count == (uint64_t)-1) in addEntryCount() 229 addCount(Count); in addEntryCount() 230 if (Count > MaxFunctionCount) in addEntryCount() 231 MaxFunctionCount = Count; in addEntryCount() 236 if (Count == (uint64_t)-1) in addInternalCount() 239 addCount(Count); in addInternalCount() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | IndirectCallPromotion.cpp | 125 uint64_t Count; member 175 uint64_t Count = ValueDataRef[I].Count; in getPromotionCandidatesForCallSite() local 176 assert(Count <= TotalCount); in getPromotionCandidatesForCallSite() 233 << NV("Count", Count) << ": " << Reason; in getPromotionCandidatesForCallSite() 238 Ret.push_back(PromotionCandidate(TargetFunction, Count)); in getPromotionCandidatesForCallSite() 239 TotalCount -= Count; in getPromotionCandidatesForCallSite() 249 uint64_t ElseCount = TotalCount - Count; in promoteIndirectCall() 250 uint64_t MaxCount = (Count >= ElseCount ? Count : ElseCount); in promoteIndirectCall() 285 uint64_t Count = C.Count; in tryToPromote() local 288 assert(TotalCount >= Count); in tryToPromote() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/views/views.span/span.sub/ |
| H A D | last.pass.cpp | 27 template <typename Span, size_t Count> 30 LIBCPP_ASSERT((noexcept(sp.template last<Count>()))); in testConstexprSpan() 31 LIBCPP_ASSERT((noexcept(sp.last(Count)))); in testConstexprSpan() 32 auto s1 = sp.template last<Count>(); in testConstexprSpan() 33 auto s2 = sp.last(Count); in testConstexprSpan() 38 static_assert(S1::extent == Count, ""); in testConstexprSpan() 47 template <typename Span, size_t Count> 51 LIBCPP_ASSERT((noexcept(sp.last(Count)))); in testRuntimeSpan() 52 auto s1 = sp.template last<Count>(); in testRuntimeSpan() 53 auto s2 = sp.last(Count); in testRuntimeSpan() [all …]
|
| H A D | first.pass.cpp | 27 template <typename Span, size_t Count> 30 LIBCPP_ASSERT((noexcept(sp.template first<Count>()))); in testConstexprSpan() 31 LIBCPP_ASSERT((noexcept(sp.first(Count)))); in testConstexprSpan() 32 auto s1 = sp.template first<Count>(); in testConstexprSpan() 33 auto s2 = sp.first(Count); in testConstexprSpan() 38 static_assert(S1::extent == Count, ""); in testConstexprSpan() 47 template <typename Span, size_t Count> 51 LIBCPP_ASSERT((noexcept(sp.first(Count)))); in testRuntimeSpan() 52 auto s1 = sp.template first<Count>(); in testRuntimeSpan() 53 auto s2 = sp.first(Count); in testRuntimeSpan() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-profgen/ |
| H A D | ProfileGenerator.cpp | 258 BeginCount += Count; in findDisjointRanges() 264 EndCount += Count; in findDisjointRanges() 319 if (Count == 0) { in findDisjointRanges() 329 uint64_t Count = 0; in findDisjointRanges() local 345 Count -= Point.EndCount; in findDisjointRanges() 364 uint64_t Count) { in updateBodySamplesforFunctionProfile() argument 377 if (PreviousCount <= Count) { in updateBodySamplesforFunctionProfile() 554 uint64_t Count = PI.second; in populateBodySamplesWithProbesForAllFunctions() local 721 CalleeName, Count); in populateBoundarySamplesForAllFunctions() 850 if (Count == 0) in populateBodySamplesForFunction() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | IndirectCallPromotionAnalysis.cpp | 52 bool ICallPromotionAnalysis::isPromotionProfitable(uint64_t Count, in isPromotionProfitable() argument 55 return Count * 100 >= ICPRemainingPercentThreshold * RemainingCount && in isPromotionProfitable() 56 Count * 100 >= ICPTotalPercentThreshold * TotalCount; in isPromotionProfitable() 72 uint64_t Count = ValueDataRef[I].Count; in getProfitablePromotionCandidates() local 73 assert(Count <= RemainingCount); in getProfitablePromotionCandidates() 74 LLVM_DEBUG(dbgs() << " Candidate " << I << " Count=" << Count in getProfitablePromotionCandidates() 77 if (!isPromotionProfitable(Count, TotalCount, RemainingCount)) { in getProfitablePromotionCandidates() 81 RemainingCount -= Count; in getProfitablePromotionCandidates()
|
| /llvm-project-15.0.7/llvm/include/llvm/ProfileData/ |
| H A D | ProfileCommon.h | 60 inline void addCount(uint64_t Count); 77 inline void addEntryCount(uint64_t Count); 78 inline void addInternalCount(uint64_t Count); 101 void ProfileSummaryBuilder::addCount(uint64_t Count) { in addCount() argument 102 TotalCount += Count; in addCount() 103 if (Count > MaxCount) in addCount() 104 MaxCount = Count; in addCount() 106 CountFrequencies[Count]++; in addCount()
|
| /llvm-project-15.0.7/bolt/test/X86/ |
| H A D | jump-table-icp.test | 33 CHECK-NEXT: Exec Count : 1073 37 CHECK-NEXT: Exec Count : 881 42 CHECK-NEXT: Exec Count : 726 47 CHECK-NEXT: Exec Count : 167 51 CHECK-NEXT: Exec Count : 156 55 CHECK-NEXT: Exec Count : 157 59 CHECK-NEXT: Exec Count : 148 63 CHECK-NEXT: Exec Count : 150 73 CHECK-NEXT: Exec Count : 777 78 CHECK-NEXT: Exec Count : 639 [all …]
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | TwineTest.cpp | 113 explicit formatter(int &Count) : FormatAdapter(0), Count(Count) {} in TEST() 114 int &Count; in TEST() member 116 void format(raw_ostream &OS, StringRef Style) override { ++Count; } in TEST() 119 int Count = 0; in TEST() local 120 formatter Formatter(Count); in TEST() 122 EXPECT_EQ(0, Count); in TEST() 124 EXPECT_EQ(1, Count); in TEST()
|
| H A D | StringSetTest.cpp | 40 size_t Count = Set.count(*Element); in TEST_F() local 42 EXPECT_EQ(Expected, Count); in TEST_F() 49 size_t Count = Set.count(""); in TEST_F() local 50 EXPECT_EQ(Count, 0UL); in TEST_F() 53 Count = Set.count(""); in TEST_F() 54 EXPECT_EQ(Count, 1UL); in TEST_F()
|
| H A D | ScopeExitTest.cpp | 32 int Count = 0; in TEST() local 33 auto Increment = [&] { ++Count; }; in TEST() 38 EXPECT_EQ(0, Count); in TEST() 40 EXPECT_EQ(1, Count); in TEST() 45 EXPECT_EQ(1, Count); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopUnrollPass.cpp | 200 UP.Count = 0; in gatherUnrollingPreferences() 727 return Count; in unrollCountPragmaValue() 916 UP.Count = 1; in computeUnrollCount() 946 UP.Count = 0; in computeUnrollCount() 984 UP.Count = 1; in computeUnrollCount() 1039 UP.Count = 0; in computeUnrollCount() 1045 UP.Count = 0; in computeUnrollCount() 1063 UP.Count = 0; in computeUnrollCount() 1080 while (UP.Count != 0 && TripMultiple % UP.Count != 0) in computeUnrollCount() 1277 if (!UP.Count) in tryToUnrollLoop() [all …]
|
| /llvm-project-15.0.7/bolt/test/runtime/X86/ |
| H A D | fdata-escape-chars.ll | 78 ; INSTR_CHECK: Exec Count : 4 80 ; INSTR_CHECK: Exec Count : 2 81 ; INSTR_CHECK: {{([[:xdigit:]]+)}}: callq "symb whitespace" # Count: 2 83 ; INSTR_CHECK: Exec Count : 1 84 ; INSTR_CHECK: {{([[:xdigit:]]+)}}: callq "symb whitespace" # Count: 1 85 ; INSTR_CHECK: {{([[:xdigit:]]+)}}: callq "symb backslash\" # Count: 2 87 ; INSTR_CHECK: Exec Count : 1 88 ; INSTR_CHECK: {{([[:xdigit:]]+)}}: callq "symb whitespace" # Count: 1 97 ; PREAGR_CHECK-DAG: Exec Count : 4 99 ; PREAGR_CHECK-DAG: Exec Count : 2 [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-xray/ |
| H A D | xray-graph.h | 43 int64_t Count; member 168 return {A.Count + B.Count, A.Min + B.Min, A.Median + B.Median, 177 return {A.Count - B.Count, A.Min - B.Min, A.Median - B.Median, 186 return {static_cast<int64_t>(A.Count / B), 198 return {static_cast<int64_t>(A.Count * B), 216 return {A.Count * B.Count, A.Min * B.Min, A.Median * B.Median, 224 return {A.Count / B.Count, A.Min / B.Min, A.Median / B.Median,
|
| /llvm-project-15.0.7/llvm/test/tools/dsymutil/Inputs/scattered-reloc/ |
| H A D | 1.s | 115 .long 1 @ Header Bucket Count 116 .long 1 @ Header Hash Count 119 .long 1 @ HeaderData Atom Count 135 .long 1 @ Header Bucket Count 136 .long 0 @ Header Hash Count 139 .long 1 @ HeaderData Atom Count 148 .long 1 @ Header Bucket Count 149 .long 0 @ Header Hash Count 152 .long 1 @ HeaderData Atom Count 161 .long 1 @ Header Bucket Count [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SampleProfileLoaderBaseUtil.cpp | 90 unsigned &Count = SampleCoverage[FS][Loc]; in markSamplesUsed() local 91 bool FirstTime = (++Count == 1); in markSamplesUsed() 107 unsigned Count = (I != SampleCoverage.end()) ? I->second.size() : 0; in countUsedRecords() local 116 Count += countUsedRecords(CalleeSamples, PSI); in countUsedRecords() 119 return Count; in countUsedRecords() 128 unsigned Count = FS->getBodySamples().size(); in countBodyRecords() local 135 Count += countBodyRecords(CalleeSamples, PSI); in countBodyRecords() 138 return Count; in countBodyRecords()
|