| /openbsd-src/gnu/llvm/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 …]
|
| 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-src/gnu/llvm/compiler-rt/lib/scudo/standalone/ |
| H A D | local_cache.h | 28 Count = N; in setFromArray() 29 memcpy(Batch, Array, sizeof(Batch[0]) * Count); in setFromArray() 32 DCHECK_LE(N, MaxNumCached - Count); in appendFromArray() 33 memcpy(Batch + Count, Array, sizeof(Batch[0]) * N); in appendFromArray() 35 Count = static_cast<u16>(Count + N); in appendFromArray() 37 void clear() { Count = 0; } in clear() 39 DCHECK_LT(Count, MaxNumCached); in add() 40 Batch[Count++] = P; in add() 43 memcpy(Array, Batch, sizeof(Batch[0]) * Count); in copyToArray() 45 u16 getCount() const { return Count; } in getCount() [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() 50 for (uptr I = 0; I < From->Count; ++I) in merge() 51 Batch[Count + I] = From->Batch[I]; in merge() 52 Count += From->Count; in merge() 55 From->Count = 0; in merge() [all …]
|
| /openbsd-src/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-src/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() 160 ProfileSummaryEntry PSE = {Cutoff, Count, CountsSeen}; in computeDetailedSummary() 228 void InstrProfSummaryBuilder::addEntryCount(uint64_t Count) { in addEntryCount() argument 229 assert(Count <= getInstrMaxCountValue() && in addEntryCount() 232 addCount(Count); in addEntryCount() 233 if (Count > MaxFunctionCount) in addEntryCount() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
| H A D | IndirectCallPromotion.cpp | 125 uint64_t Count; member 127 PromotionCandidate(Function *F, uint64_t C) : TargetFunction(F), Count(C) {} in PromotionCandidate() 175 uint64_t Count = ValueDataRef[I].Count; in getPromotionCandidatesForCallSite() local 176 assert(Count <= TotalCount); in getPromotionCandidatesForCallSite() 179 LLVM_DEBUG(dbgs() << " Candidate " << I << " Count=" << Count in getPromotionCandidatesForCallSite() 233 << NV("Count", Count) << ": " << Reason; in getPromotionCandidatesForCallSite() 238 Ret.push_back(PromotionCandidate(TargetFunction, Count)); in getPromotionCandidatesForCallSite() 239 TotalCount -= Count; in getPromotionCandidatesForCallSite() 245 uint64_t Count, uint64_t TotalCount, in promoteIndirectCall() argument 249 uint64_t ElseCount = TotalCount - Count; in promoteIndirectCall() [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-profgen/ |
| H A D | ProfileGenerator.cpp | 262 void addBeginCount(uint64_t Count) { in findDisjointRanges() 265 BeginCount += Count; in findDisjointRanges() 268 void addEndCount(uint64_t Count) { in findDisjointRanges() 271 EndCount += Count; in findDisjointRanges() 322 uint64_t Count = Item.second; in findDisjointRanges() local 324 BeginPoint.addBeginCount(Count); in findDisjointRanges() 325 EndPoint.addEndCount(Count); in findDisjointRanges() 326 if (Count == 0) { in findDisjointRanges() 336 uint64_t Count = 0; in findDisjointRanges() local 342 DisjointRanges[{BeginAddress, Address - 1}] = Count; in findDisjointRanges() [all …]
|
| /openbsd-src/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-src/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::; 606 is(Count::DATA->getline(), 'method in Count::DATA', 608 is(The::Count::DATA->getline(), 'method in Count::DATA', 611 require Count; 613 is(Count::DATA->getline(), "one! ha ha ha\n", 'file handles take priority'); 614 is(The::Count::DATA->getline(), "two! ha ha ha\n", 617 eval q{close Count::DATA} or die $!; 621 is(Count::DATA->getline(), undef, 623 is(The::Count::DATA->getline(), undef, [all …]
|
| /openbsd-src/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-src/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-src/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-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | LoopUnrollPass.cpp | 200 UP.Count = 0; in gatherUnrollingPreferences() 261 UP.Count = *UserCount; in gatherUnrollingPreferences() 724 unsigned Count = in unrollCountPragmaValue() local 726 assert(Count >= 1 && "Unroll count must be positive."); in unrollCountPragmaValue() 727 return Count; in unrollCountPragmaValue() 770 return static_cast<uint64_t>(LoopSize - UP.BEInsns) * UP.Count + in getUnrolledLoopSize() 846 unsigned count = UP.Count; in shouldPartialUnroll() 917 UP.Count = 1; in computeUnrollCount() 926 UP.Count = *UnrollFactor; in computeUnrollCount() 947 UP.Count = 0; in computeUnrollCount() [all …]
|
| H A D | LoopUnrollAndJamPass.cpp | 137 unsigned Count = in unrollAndJamCountPragmaValue() local 139 assert(Count >= 1 && "Unroll count must be positive."); in unrollAndJamCountPragmaValue() 140 return Count; in unrollAndJamCountPragmaValue() 150 return static_cast<uint64_t>(LoopSize - UP.BEInsns) * UP.Count + UP.BEInsns; in getUnrollAndJammedLoopSize() 179 UP.Count = 0; in computeUnrollAndJamCount() 186 UP.Count = UnrollAndJamCount; in computeUnrollAndJamCount() 198 UP.Count = PragmaCount; in computeUnrollAndJamCount() 221 UP.Count = 0; in computeUnrollAndJamCount() 229 while (UP.Count != 0 && getUnrollAndJammedLoopSize(InnerLoopSize, UP) >= in computeUnrollAndJamCount() 231 UP.Count--; in computeUnrollAndJamCount() [all …]
|
| /openbsd-src/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-src/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-src/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() 46 Count += (I.Offset > 512 * 1024 - 8) ? 3 : 2; in CountOfUnwindCodes() 50 return Count; in CountOfUnwindCodes() 340 uint32_t Count = 0; in ARM64CountOfUnwindCodes() local 346 Count += 1; in ARM64CountOfUnwindCodes() 349 Count += 2; in ARM64CountOfUnwindCodes() 352 Count += 4; in ARM64CountOfUnwindCodes() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ProfileData/Coverage/ |
| H A D | CoverageMapping.h | 237 Counter Count; member 246 CounterMappingRegion(Counter Count, unsigned FileID, unsigned ExpandedFileID, in CounterMappingRegion() 249 : Count(Count), FileID(FileID), ExpandedFileID(ExpandedFileID), in CounterMappingRegion() 253 CounterMappingRegion(Counter Count, Counter FalseCount, unsigned FileID, in CounterMappingRegion() 257 : Count(Count), FalseCount(FalseCount), FileID(FileID), in CounterMappingRegion() 263 makeRegion(Counter Count, unsigned FileID, unsigned LineStart, in makeRegion() 265 return CounterMappingRegion(Count, FileID, 0, LineStart, ColumnStart, in makeRegion() 285 makeGapRegion(Counter Count, unsigned FileID, unsigned LineStart, in makeGapRegion() 287 return CounterMappingRegion(Count, FileID, 0, LineStart, ColumnStart, in makeGapRegion() 292 makeBranchRegion(Counter Count, Counter FalseCount, unsigned FileID, in makeBranchRegion() [all …]
|
| /openbsd-src/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-src/gnu/llvm/llvm/lib/Object/ |
| H A D | WasmObjectFile.cpp | 103 unsigned Count; in readULEB128() local 105 uint64_t Result = decodeULEB128(Ctx.Ptr, &Count, Ctx.End, &Error); in readULEB128() 108 Ctx.Ptr += Count; in readULEB128() 123 unsigned Count; in readLEB128() local 125 uint64_t Result = decodeSLEB128(Ctx.Ptr, &Count, Ctx.End, &Error); in readLEB128() 128 Ctx.Ptr += Count; in readLEB128() 380 uint32_t Count = readVaruint32(Ctx); in parseDylinkSection() local 381 while (Count--) { in parseDylinkSection() 404 uint32_t Count; in parseDylink0Section() local 413 Count = readVaruint32(Ctx); in parseDylink0Section() [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/obj2yaml/ |
| H A D | macho2yaml.cpp | 383 unsigned Count; in dumpRebaseOpcodes() local 389 ULEB = decodeULEB128(OpCode + 1, &Count); in dumpRebaseOpcodes() 391 OpCode += Count; in dumpRebaseOpcodes() 399 ULEB = decodeULEB128(OpCode + 1, &Count); in dumpRebaseOpcodes() 401 OpCode += Count; in dumpRebaseOpcodes() 431 unsigned Count; in dumpBindOpcodes() local 437 ULEB = decodeULEB128(OpCode + 1, &Count); in dumpBindOpcodes() 439 OpCode += Count; in dumpBindOpcodes() 447 ULEB = decodeULEB128(OpCode + 1, &Count); in dumpBindOpcodes() 449 OpCode += Count; in dumpBindOpcodes() [all …]
|
| /openbsd-src/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()
|