| /llvm-project/lldb/unittests/Core/ |
| H A D | MangledTest.cpp | 242 auto Count = [M](const char *Name, FunctionNameType Type) -> int { in TEST() local 249 EXPECT_EQ(1, Count("main", eFunctionNameTypeFull)); in TEST() 250 EXPECT_EQ(1, Count("main", eFunctionNameTypeBase)); in TEST() 251 EXPECT_EQ(0, Count("main", eFunctionNameTypeMethod)); in TEST() 254 EXPECT_EQ(1, Count("_Z3foov", eFunctionNameTypeFull)); in TEST() 255 EXPECT_EQ(1, Count("_Z3foov", eFunctionNameTypeBase)); in TEST() 256 EXPECT_EQ(1, Count("foo", eFunctionNameTypeBase)); in TEST() 257 EXPECT_EQ(0, Count("foo", eFunctionNameTypeMethod)); in TEST() 260 EXPECT_EQ(1, Count("puts@GLIBC_2.5", eFunctionNameTypeFull)); in TEST() 261 EXPECT_EQ(1, Count("puts@GLIBC_2.6", eFunctionNameTypeFull)); in TEST() [all …]
|
| /llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | allocator_common.h | 24 Count = N; in setFromArray() 25 memcpy(Batch, Array, sizeof(Batch[0]) * Count); in setFromArray() 28 DCHECK_LE(N, MaxNumCached - Count); in appendFromArray() 29 memcpy(Batch + Count, Array, sizeof(Batch[0]) * N); in appendFromArray() 31 Count = static_cast<u16>(Count + N); in appendFromArray() 34 DCHECK_LE(N, MaxNumCached - Count); in appendFromTransferBatch() 35 DCHECK_GE(B->Count, N); in appendFromTransferBatch() 37 memcpy(Batch + Count, B->Batch + (B->Count in appendFromTransferBatch() 68 u16 Count; global() member [all...] |
| H A D | local_cache.h | 43 if (C->Count == 0) { in allocate() 48 DCHECK_GT(C->Count, 0); in allocate() 54 CompactPtrT CompactP = C->Chunks[--C->Count]; in allocate() 65 const bool NeedToDrainCache = C->Count == C->MaxCount; in deallocate() 70 C->Chunks[C->Count++] = in deallocate() 80 if (PerClassArray[I].Count) in isEmpty() 90 while (PerClassArray[I].Count > 0) in drain() 93 while (PerClassArray[BatchClassId].Count > 0) in drain() 110 if (PerClassArray[I].Count == 0) in getStats() 122 static_cast<uptr>(PerClassArray[I].Count), in getStats() [all …]
|
| H A D | quarantine.h | 25 u32 Count; member 29 Count = 1; in init() 38 DCHECK_LT(Count, MaxCount); in push_back() 39 Batch[Count++] = Ptr; in push_back() 44 return Count + From->Count <= MaxCount; in canMerge() 48 DCHECK_LE(Count + From->Count, MaxCount); in merge() 51 for (uptr I = 0; I < From->Count; ++I) in merge() 52 Batch[Count + I] = From->Batch[I]; in merge() 53 Count += From->Count; in merge() 56 From->Count = 0; in merge() [all …]
|
| /llvm-project/llvm/include/llvm/Support/ |
| H A D | LEB128.h | 26 unsigned Count = 0; variable 33 Count++; 34 if (More || Count < PadTo) 40 if (Count < PadTo) { 42 for (; Count < PadTo - 1; ++Count) 45 Count++; 47 return Count; 54 unsigned Count = 0; variable 62 Count++; 63 if (More || Count < PadTo) [all …]
|
| /llvm-project/llvm/unittests/CodeGen/ |
| H A D | PassManagerTest.cpp | 38 Result(int Count) : InstructionCount(Count) {} in Result() 58 Result(int Count) : InstructionCount(Count) {} in Result() 79 TestMachineFunctionPass(int &Count, std::vector<int> &Counts) in TestMachineFunctionPass() 80 : Count(Count), Counts(Counts) {} in TestMachineFunctionPass() 89 Count += FAR.InstructionCount; in run() 93 Count += MFAR.InstructionCount; in run() 95 Counts.push_back(Count); in run() 100 int &Count; global() member 124 int &Count; global() member 204 int Count = 0; TEST_F() local [all...] |
| /llvm-project/bolt/lib/Core/ |
| H A D | BinaryFunctionProfile.cpp | 92 if (SuccBIIter->Count != BinaryBasicBlock::COUNT_NO_PROFILE && in postProcessProfile() 94 Succ->setExecutionCount(Succ->getExecutionCount() + SuccBIIter->Count); in postProcessProfile() 114 if (!BI.Count) { in postProcessProfile() 115 BI.Count = BB->getKnownExecutionCount(); in postProcessProfile() 117 BI.Count); in postProcessProfile() 127 uint64_t Count = SuccBIIter->Count; in postProcessProfile() local 128 if (Count != BinaryBasicBlock::COUNT_NO_PROFILE && Count > 0) { in postProcessProfile() 129 Succ->setExecutionCount(std::max(Succ->getExecutionCount(), Count)); in postProcessProfile() [all...] |
| H A D | BinaryBasicBlock.cpp | 258 void BinaryBasicBlock::addSuccessor(BinaryBasicBlock *Succ, uint64_t Count, in addSuccessor() argument 261 BranchInfo.push_back({Count, MispredictedCount}); in addSuccessor() 267 uint64_t Count, in replaceSuccessor() argument 281 *BI = BinaryBranchInfo{Count, MispredictedCount}; in replaceSuccessor() 346 uint64_t Count = COUNT_NO_PROFILE; in removeDuplicateConditionalSuccessor() local 347 if (CondBI.Count != COUNT_NO_PROFILE && UncondBI.Count != COUNT_NO_PROFILE) in removeDuplicateConditionalSuccessor() 348 Count = CondBI.Count + UncondBI.Count; in removeDuplicateConditionalSuccessor() 349 BranchInfo.push_back({Count, 0}); in removeDuplicateConditionalSuccessor() 383 auto adjustedCount = [&](uint64_t Count) -> uint64_t { in adjustExecutionCount() argument 384 double NewCount = Count * Ratio; in adjustExecutionCount() [all …]
|
| /llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | IndirectCallPromotion.cpp | 332 const uint64_t Count; 344 PromotionCandidate(Function *F, uint64_t C) : TargetFunction(F), Count(C) {} 440 uint64_t Count = ValueDataRef[I].Count; in getPromotionCandidatesForCallSite() 441 assert(Count <= TotalCount); in getPromotionCandidatesForCallSite() 444 LLVM_DEBUG(dbgs() << " Candidate " << I << " Count=" << Count in getPromotionCandidatesForCallSite() 498 << NV("Count", Count) << ": " << Reason; in getOrCreateVTableAddressPointVar() 503 Ret.push_back(PromotionCandidate(TargetFunction, Count)); in getOrCreateVTableAddressPointVar() 324 const uint64_t Count; global() member 428 uint64_t Count = ValueDataRef[I].Count; getPromotionCandidatesForCallSite() local 607 promoteIndirectCall(CallBase & CB,Function * DirectCallee,uint64_t Count,uint64_t TotalCount,bool AttachProfToDirectCall,OptimizationRemarkEmitter * ORE) promoteIndirectCall() argument 795 __anondf85e8b90b02(uint64_t Count, const InstrProfValueData &ProfData) tryToPromoteWithVTableCmp() argument [all...] |
| /llvm-project/llvm/lib/ProfileData/ |
| H A D | ProfileSummaryBuilder.cpp | 123 uint64_t Count = I.second.getSamples(); in addRecord() local 124 addCount(Count); in addRecord() 141 uint64_t CurrSum = 0, Count = 0; in computeDetailedSummary() local 153 Count = Iter->first; in computeDetailedSummary() 155 CurrSum += (Count * Freq); in computeDetailedSummary() 160 ProfileSummaryEntry PSE = {Cutoff, Count, CountsSeen}; in computeDetailedSummary() 226 void InstrProfSummaryBuilder::addEntryCount(uint64_t Count) { in addEntryCount() argument 227 assert(Count <= getInstrMaxCountValue() && in addEntryCount() 230 addCount(Count); in addEntryCount() 231 if (Count > MaxFunctionCount) in addEntryCount() [all …]
|
| /llvm-project/libcxx/test/std/containers/views/views.span/span.sub/ |
| H A D | last.pass.cpp | 26 template <typename Span, std::size_t Count> 29 LIBCPP_ASSERT((noexcept(sp.template last<Count>()))); in testConstexprSpan() 30 LIBCPP_ASSERT((noexcept(sp.last(Count)))); in testConstexprSpan() 31 auto s1 = sp.template last<Count>(); in testConstexprSpan() 32 auto s2 = sp.last(Count); in testConstexprSpan() 37 static_assert(S1::extent == Count, ""); in testConstexprSpan() 42 && std::equal(s1.begin(), s1.end(), sp.end() - Count); in testConstexprSpan() 46 template <typename Span, std::size_t Count> 49 LIBCPP_ASSERT((noexcept(sp.template last<Count>()))); in testRuntimeSpan() 50 LIBCPP_ASSERT((noexcept(sp.last(Count)))); in testRuntimeSpan() [all …]
|
| H A D | first.pass.cpp | 26 template <typename Span, std::size_t Count> 29 LIBCPP_ASSERT((noexcept(sp.template first<Count>()))); in testConstexprSpan() 30 LIBCPP_ASSERT((noexcept(sp.first(Count)))); in testConstexprSpan() 31 auto s1 = sp.template first<Count>(); in testConstexprSpan() 32 auto s2 = sp.first(Count); in testConstexprSpan() 37 static_assert(S1::extent == Count, ""); in testConstexprSpan() 46 template <typename Span, std::size_t Count> 49 LIBCPP_ASSERT((noexcept(sp.template first<Count>()))); in testRuntimeSpan() 50 LIBCPP_ASSERT((noexcept(sp.first(Count)))); in testRuntimeSpan() 51 auto s1 = sp.template first<Count>(); in testRuntimeSpan() [all …]
|
| /llvm-project/llvm/tools/llvm-profgen/ |
| H A D | ProfileGenerator.cpp | 278 void addBeginCount(uint64_t Count) { in findDisjointRanges() 281 BeginCount += Count; in findDisjointRanges() 284 void addEndCount(uint64_t Count) { in findDisjointRanges() 287 EndCount += Count; in findDisjointRanges() 338 uint64_t Count = Item.second; in findDisjointRanges() local 340 BeginPoint.addBeginCount(Count); in findDisjointRanges() 341 EndPoint.addEndCount(Count); in findDisjointRanges() 342 if (Count == 0) { in findDisjointRanges() 352 uint64_t Count = 0; in findDisjointRanges() local 358 DisjointRanges[{BeginAddress, Address - 1}] = Count; in findDisjointRanges() 387 updateBodySamplesforFunctionProfile(FunctionSamples & FunctionProfile,const SampleContextFrame & LeafLoc,uint64_t Count) updateBodySamplesforFunctionProfile() argument 572 uint64_t Count = PI.second; populateBodySamplesWithProbesForAllFunctions() local 589 uint64_t Count = Entry.second; populateBoundarySamplesWithProbesForAllFunctions() local 617 getLeafProfileAndAddTotalSamples(const SampleContextFrameVector & FrameVec,uint64_t Count) getLeafProfileAndAddTotalSamples() argument 682 uint64_t Count = Range.second; populateBodySamplesForAllFunctions() local 726 uint64_t Count = Entry.second; populateBoundarySamplesForAllFunctions() local 966 uint64_t Count = Range.second; populateBodySamplesForFunction() local 996 uint64_t Count = Entry.second; populateBoundarySamplesForFunction() local 1174 uint64_t Count = Range.second; extractProbesFromRange() local 1250 uint64_t Count = PI.second; populateBodySamplesWithProbes() local 1309 uint64_t Count = BI.second; populateBoundarySamplesWithProbes() local [all...] |
| /llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ProfileSummaryInfo.h | 46 // Count thresholds to answer isHotCount and isColdCount queries. 198 auto Count = BFI->getBlockProfileCount(BB); in isHotBlock() 199 return Count && isHotCount(*Count); in isHotBlock() local 205 auto Count = BFI->getBlockProfileCount(BB); in isColdBlock() 206 return Count && isColdCount(*Count); in isColdBlock() local 211 auto Count = BFI->getProfileCountFromFreq(BlockFreq); in isColdBlock() 212 return Count && isColdCount(*Count); in isColdBlock() local 307 auto Count = BFI->getBlockProfileCount(BB); isHotOrColdBlockNthPercentile() local 318 auto Count = BFI->getProfileCountFromFreq(BlockFreq); isHotOrColdBlockNthPercentile() local [all...] |
| /llvm-project/llvm/lib/Analysis/ |
| H A D | IndirectCallPromotionAnalysis.cpp | 51 bool ICallPromotionAnalysis::isPromotionProfitable(uint64_t Count, 54 return Count * 100 >= ICPRemainingPercentThreshold * RemainingCount && in isPromotionProfitable() 55 Count * 100 >= ICPTotalPercentThreshold * TotalCount; in isPromotionProfitable() 69 uint64_t Count = ValueDataArray[I].Count; in getProfitablePromotionCandidates() 70 assert(Count <= RemainingCount); in getProfitablePromotionCandidates() local 71 LLVM_DEBUG(dbgs() << " Candidate " << I << " Count=" << Count in getProfitablePromotionCandidates() 74 if (!isPromotionProfitable(Count, TotalCount, RemainingCount)) { in getProfitablePromotionCandidates() 78 RemainingCount -= Count; in getProfitablePromotionCandidates() 52 isPromotionProfitable(uint64_t Count,uint64_t TotalCount,uint64_t RemainingCount) isPromotionProfitable() argument [all...] |
| /llvm-project/llvm/unittests/ProfileData/ |
| H A D | InstrProfTest.cpp | 817 EXPECT_EQ(VD[0].Count, 3U * getProfWeight()); in TEST_P() 818 EXPECT_EQ(VD[1].Count, 2U * getProfWeight()); in TEST_P() 819 EXPECT_EQ(VD[2].Count, 1U * getProfWeight()); in TEST_P() 835 EXPECT_EQ(VD[0].Count, 3U * getProfWeight()); in TEST_P() 836 EXPECT_EQ(VD[1].Count, 2U * getProfWeight()); in TEST_P() 837 EXPECT_EQ(VD[2].Count, 1U * getProfWeight()); in TEST_P() 849 EXPECT_EQ(VD[0].Count, 2U * getProfWeight()); in TEST_P() 850 EXPECT_EQ(VD[1].Count, 1U * getProfWeight()); in TEST_P() 902 ASSERT_EQ(6U, ValueData[0].Count); in TEST_P() 904 ASSERT_EQ(5U, ValueData[1].Count); in TEST_P() [all...] |
| /llvm-project/bolt/test/X86/ |
| H A D | jump-table-icp.test | 34 CHECK-NEXT: Exec Count : 1073 38 CHECK-NEXT: Exec Count : 881 44 CHECK-NEXT: Exec Count : 726 50 CHECK-NEXT: Exec Count : 167 54 CHECK-NEXT: Exec Count : 156 58 CHECK-NEXT: Exec Count : 157 62 CHECK-NEXT: Exec Count : 148 66 CHECK-NEXT: Exec Count : 150 72 CHECK-NEXT: Exec Count : 1064 76 CHECK-NEXT: Exec Count : 777 [all …]
|
| /llvm-project/llvm/include/llvm/ProfileData/ |
| H A D | ProfileCommon.h | 65 inline void addCount(uint64_t Count); 86 void addEntryCount(uint64_t Count); in InstrProfSummaryBuilder() 87 void addInternalCount(uint64_t Count); in InstrProfSummaryBuilder() 106 void ProfileSummaryBuilder::addCount(uint64_t Count) { in addCount() argument 107 TotalCount += Count; in addCount() 108 if (Count > MaxCount) in addCount() 109 MaxCount = Count; in addCount() 111 CountFrequencies[Count]++; in addCount()
|
| /llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopUnrollPass.cpp | 206 UP.Count = 0; in gatherUnrollingPreferences() 272 UP.Count = *UserCount; in gatherUnrollingPreferences() 737 return static_cast<uint64_t>(LS - UP.BEInsns) * UP.Count + UP.BEInsns; 772 unsigned Count = in unrollCountPragmaValue() 774 assert(Count >= 1 && "Unroll count must be positive."); in unrollCountPragmaValue() 775 return Count; in unrollCountPragmaValue() 881 unsigned count = UP.Count; in shouldPartialUnroll() 894 // If there is no Count that is modulo of TripCount, set Count to in shouldPartialUnroll() 917 // Calculates unroll count and writes it to UP.Count 770 unsigned Count = unrollCountPragmaValue() local 1417 LoopUnroll(int OptLevel=2,bool OnlyWhenForced=false,bool ForgetAllSCEV=false,std::optional<unsigned> Threshold=std::nullopt,std::optional<unsigned> Count=std::nullopt,std::optional<bool> AllowPartial=std::nullopt,std::optional<bool> Runtime=std::nullopt,std::optional<bool> UpperBound=std::nullopt,std::optional<bool> AllowPeeling=std::nullopt,std::optional<bool> AllowProfileBasedPeeling=std::nullopt,std::optional<unsigned> ProvidedFullUnrollMaxCount=std::nullopt) LoopUnroll() argument [all...] |
| H A D | LoopUnrollAndJamPass.cpp | 132 unsigned Count = in unrollAndJamCountPragmaValue() 134 assert(Count >= 1 && "Unroll count must be positive."); in unrollAndJamCountPragmaValue() 135 return Count; in unrollAndJamCountPragmaValue() 145 return static_cast<uint64_t>(LoopSize - UP.BEInsns) * UP.Count + UP.BEInsns; in getUnrollAndJammedLoopSize() 148 // Calculates unroll and jam count and writes it to UP.Count. Returns true if 176 UP.Count = 0; in computeUnrollAndJamCount() 180 // Override with any explicit Count from the "unroll-and-jam-count" option. in computeUnrollAndJamCount() 183 UP.Count = UnrollAndJamCount; in computeUnrollAndJamCount() 195 UP.Count = PragmaCount; in computeUnrollAndJamCount() 218 UP.Count in computeUnrollAndJamCount() 133 unsigned Count = unrollAndJamCountPragmaValue() local [all...] |
| /llvm-project/llvm/unittests/ADT/ |
| H A D | TwineTest.cpp | 119 explicit formatter(int &Count) : FormatAdapter(0), Count(Count) {} in TEST() 120 int &Count; in TEST() member 122 void format(raw_ostream &OS, StringRef Style) override { ++Count; } in TEST() 125 int Count = 0; in TEST() local 126 formatter Formatter(Count); in TEST() 128 EXPECT_EQ(0, Count); in TEST() 130 EXPECT_EQ(1, Count); in TEST()
|
| /llvm-project/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/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/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/llvm/lib/Transforms/Utils/ |
| H A D | SampleProfileLoaderBaseUtil.cpp | 86 unsigned &Count = SampleCoverage[FS][Loc]; in markSamplesUsed() local 87 bool FirstTime = (++Count == 1); in markSamplesUsed() 103 unsigned Count = (I != SampleCoverage.end()) ? I->second.size() : 0; in countUsedRecords() local 112 Count += countUsedRecords(CalleeSamples, PSI); in countUsedRecords() 115 return Count; in countUsedRecords() 124 unsigned Count = FS->getBodySamples().size(); in countBodyRecords() local 131 Count += countBodyRecords(CalleeSamples, PSI); in countBodyRecords() 134 return Count; in countBodyRecords()
|