/openbsd/gnu/llvm/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 | 80 ++CounterInfo.Count; in shouldExecute() 87 if (CounterInfo.Skip >= CounterInfo.Count) in shouldExecute() 91 return CounterInfo.StopAfter + CounterInfo.Skip >= CounterInfo.Count; in shouldExecute() 109 return Result->second.Count; in getCounterValue() 113 static void setCounterValue(unsigned ID, int64_t Count) { in setCounterValue() argument 115 Us.Counters[ID].Count = Count; in setCounterValue() 168 int64_t Count = 0; member
|
H A D | FormatAdapters.h | 60 size_t Count; variable 63 RepeatAdapter(T &&Item, size_t Count) in RepeatAdapter() argument 64 : FormatAdapter<T>(std::forward<T>(Item)), Count(Count) {} in RepeatAdapter() 68 for (size_t I = 0; I < Count; ++I) { in format() 97 detail::RepeatAdapter<T> fmt_repeat(T &&Item, size_t Count) { in fmt_repeat() argument 98 return detail::RepeatAdapter<T>(std::forward<T>(Item), Count); in fmt_repeat()
|
/openbsd/gnu/llvm/compiler-rt/lib/scudo/standalone/ |
H A D | local_cache.h | 28 Count = N; in setFromArray() 35 Count = static_cast<u16>(Count + N); in appendFromArray() 37 void clear() { Count = 0; } in clear() 40 Batch[Count++] = P; in add() 47 DCHECK_LE(I, Count); in get() 57 u16 Count; member 100 if (C->Count == 0) { in allocate() 125 C->Chunks[C->Count++] = in deallocate() 172 u16 Count; in alignas() local 223 const u16 Count = Min(static_cast<u16>(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 …]
|
/openbsd/gnu/llvm/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 …]
|
/openbsd/gnu/llvm/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() 232 addCount(Count); in addEntryCount() 233 if (Count > MaxFunctionCount) in addEntryCount() 234 MaxFunctionCount = Count; in addEntryCount() 240 addCount(Count); in addInternalCount() 241 if (Count > MaxInternalBlockCount) in addInternalCount() [all …]
|
/openbsd/gnu/llvm/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 …]
|
/openbsd/gnu/llvm/llvm/tools/llvm-profgen/ |
H A D | ProfileGenerator.cpp | 265 BeginCount += Count; in findDisjointRanges() 271 EndCount += Count; in findDisjointRanges() 326 if (Count == 0) { in findDisjointRanges() 336 uint64_t Count = 0; in findDisjointRanges() local 352 Count -= Point.EndCount; in findDisjointRanges() 371 uint64_t Count) { in updateBodySamplesforFunctionProfile() argument 384 if (PreviousCount <= Count) { in updateBodySamplesforFunctionProfile() 560 uint64_t Count = PI.second; in populateBodySamplesWithProbesForAllFunctions() local 726 CalleeName, Count); in populateBoundarySamplesForAllFunctions() 867 if (Count == 0) in populateBodySamplesForFunction() [all …]
|
/openbsd/gnu/llvm/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()
|
H A D | ProfileSummaryInfo.cpp | 330 auto Count = BFI->getBlockProfileCount(BB); in isHotBlock() local 331 return Count && isHotCount(*Count); in isHotBlock() 336 auto Count = BFI->getBlockProfileCount(BB); in isColdBlock() local 337 return Count && isColdCount(*Count); in isColdBlock() 343 auto Count = BFI->getBlockProfileCount(BB); in isHotOrColdBlockNthPercentile() local 345 return Count && isHotCountNthPercentile(PercentileCutoff, *Count); in isHotOrColdBlockNthPercentile() 347 return Count && isColdCountNthPercentile(PercentileCutoff, *Count); in isHotOrColdBlockNthPercentile()
|
/openbsd/gnu/usr.bin/perl/t/op/ |
H A D | method.t | 590 foreach (qw (Count::DATA Count Colour::H1 Color::H1 C3::H1)) { 603 *The::Count:: = \*Count::; 611 require Count; 617 eval q{close Count::DATA} or die $!; 621 is(Count::DATA->getline(), undef, 623 is(The::Count::DATA->getline(), undef, 627 undef *Count::DATA; 639 open Count, '<', $INC{'Count.pm'} 647 eval q{close Count} or die $!; 651 is(Count->getline(), undef, [all …]
|
/openbsd/gnu/llvm/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()
|
/openbsd/gnu/llvm/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,
|
/openbsd/gnu/llvm/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()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/ |
H A D | LoopUnrollPass.cpp | 200 UP.Count = 0; in gatherUnrollingPreferences() 727 return Count; in unrollCountPragmaValue() 917 UP.Count = 1; in computeUnrollCount() 947 UP.Count = 0; in computeUnrollCount() 985 UP.Count = 1; in computeUnrollCount() 1040 UP.Count = 0; in computeUnrollCount() 1046 UP.Count = 0; in computeUnrollCount() 1064 UP.Count = 0; in computeUnrollCount() 1081 while (UP.Count != 0 && TripMultiple % UP.Count != 0) in computeUnrollCount() 1118 UP.Count = 0; in computeUnrollCount() [all …]
|
H A D | LoopUnrollAndJamPass.cpp | 137 unsigned Count = in unrollAndJamCountPragmaValue() local 140 return Count; in unrollAndJamCountPragmaValue() 179 UP.Count = 0; in computeUnrollAndJamCount() 198 UP.Count = PragmaCount; in computeUnrollAndJamCount() 221 UP.Count = 0; in computeUnrollAndJamCount() 231 UP.Count--; in computeUnrollAndJamCount() 244 UP.Count = 0; in computeUnrollAndJamCount() 253 UP.Count = 0; in computeUnrollAndJamCount() 273 UP.Count = 0; in computeUnrollAndJamCount() 387 if (UP.Count <= 1) in tryToUnrollAndJamLoop() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/xray/ |
H A D | xray_buffer_queue.cpp | 30 BufferQueue::ControlBlock *allocControlBlock(size_t Size, size_t Count) { in allocControlBlock() argument 32 allocateBuffer((sizeof(BufferQueue::ControlBlock) - 1) + (Size * Count)); in allocControlBlock() 38 size_t Count) { in deallocControlBlock() argument 40 (sizeof(BufferQueue::ControlBlock) - 1) + (Size * Count)); in deallocControlBlock() 43 void decRefCount(BufferQueue::ControlBlock *C, size_t Size, size_t Count) { in decRefCount() argument 47 deallocControlBlock(C, Size, Count); in decRefCount() 133 Buf.Count = BufferCount; in init() 192 decRefCount(Buf.BackingStore, Buf.Size, Buf.Count); in releaseBuffer() 193 decRefCount(Buf.ExtentsBackingStore, kExtentsSize, Buf.Count); in releaseBuffer() 210 decRefCount(Buf.BackingStore, Buf.Size, Buf.Count); in releaseBuffer() [all …]
|
/openbsd/games/robots/ |
H A D | move.c | 77 else if (Count != 0) in get_move() 112 Count = (c - '0'); in get_move() 114 Count = Count * 10 + (c - '0'); in get_move() 118 if (Count) in get_move() 222 if (Count > 0) in get_move() 223 if (--Count == 0) in get_move() 324 Count = 0; in reset_count() 337 return (Jump && (Count || Running || Waiting)); in jumping()
|
/openbsd/gnu/llvm/llvm/lib/MC/ |
H A D | MCWin64EH.cpp | 26 uint8_t Count = 0; in CountOfUnwindCodes() local 35 Count += 1; in CountOfUnwindCodes() 39 Count += 2; in CountOfUnwindCodes() 43 Count += 3; in CountOfUnwindCodes() 50 return Count; in CountOfUnwindCodes() 346 Count += 1; in ARM64CountOfUnwindCodes() 349 Count += 2; in ARM64CountOfUnwindCodes() 352 Count += 4; in ARM64CountOfUnwindCodes() 436 return Count; in ARM64CountOfUnwindCodes() 1487 return Count; in ARMCountOfUnwindCodes() [all …]
|
/openbsd/gnu/llvm/llvm/include/llvm/ProfileData/Coverage/ |
H A D | CoverageMapping.h | 237 Counter Count; member 249 : Count(Count), FileID(FileID), ExpandedFileID(ExpandedFileID), in CounterMappingRegion() 257 : Count(Count), FalseCount(FalseCount), FileID(FileID), in CounterMappingRegion() 380 ExecutionCount = Count; in pushRegion() 381 CountedRegions.emplace_back(Region, Count, FalseCount); in pushRegion() 447 uint64_t Count; member 456 : Line(Line), Col(Col), Count(0), HasCount(false), in CoverageSegment() 462 : Line(Line), Col(Col), Count(Count), HasCount(true), in Line() 518 uint64_t Count = 0; in getTotalExecutionCount() local 520 Count += F->ExecutionCount; in getTotalExecutionCount() [all …]
|
/openbsd/gnu/llvm/llvm/utils/count/ |
H A D | count.c | 13 size_t Count, NumLines, NumRead; in main() local 21 Count = strtoul(argv[1], &End, 10); in main() 43 if (Count != NumLines) { in main() 44 fprintf(stderr, "Expected %zu lines, got %zu.\n", Count, NumLines); in main()
|
/openbsd/gnu/llvm/llvm/lib/Object/ |
H A D | WasmObjectFile.cpp | 103 unsigned Count; in readULEB128() local 108 Ctx.Ptr += Count; in readULEB128() 123 unsigned Count; in readLEB128() local 128 Ctx.Ptr += Count; in readLEB128() 381 while (Count--) { in parseDylinkSection() 404 uint32_t Count; in parseDylink0Section() local 610 while (Count--) { in parseLinkingSectionSymtab() 1084 while (Count--) { in parseTypeSection() 1173 while (Count--) { in parseFunctionSection() 1192 while (Count--) { in parseTableSection() [all …]
|
/openbsd/gnu/llvm/llvm/tools/obj2yaml/ |
H A D | macho2yaml.cpp | 383 unsigned Count; in dumpRebaseOpcodes() local 391 OpCode += Count; in dumpRebaseOpcodes() 401 OpCode += Count; in dumpRebaseOpcodes() 431 unsigned Count; in dumpBindOpcodes() local 439 OpCode += Count; in dumpBindOpcodes() 449 OpCode += Count; in dumpBindOpcodes() 455 OpCode += Count; in dumpBindOpcodes() 541 unsigned Count = 0; in processExportNode() local 543 CurrPtr += Count; in processExportNode() 546 CurrPtr += Count; in processExportNode() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/profile/ |
H A D | InstrProfilingValue.c | 159 CurVNode->Count += CountValue; in instrumentTargetValueImpl() 162 if (CurVNode->Count < MinCount) { in instrumentTargetValueImpl() 163 MinCount = CurVNode->Count; in instrumentTargetValueImpl() 200 if (MinCountVNode->Count <= CountValue) { in instrumentTargetValueImpl() 203 CurVNode->Count = CountValue; in instrumentTargetValueImpl() 205 MinCountVNode->Count -= CountValue; in instrumentTargetValueImpl() 214 CurVNode->Count += CountValue; in instrumentTargetValueImpl() 337 Dst[I].Count = VNode->Count; in getNextNValueData()
|