Home
last modified time | relevance | path

Searched refs:MaxCount (Results 1 – 25 of 31) sorted by relevance

12

/openbsd/gnu/llvm/llvm/include/llvm/IR/
H A DProfileSummary.h52 const uint64_t TotalCount, MaxCount, MaxInternalCount, MaxFunctionCount; variable
72 uint64_t TotalCount, uint64_t MaxCount,
77 TotalCount(TotalCount), MaxCount(MaxCount), in PSK()
93 uint64_t getMaxCount() const { return MaxCount; } in getMaxCount()
/openbsd/gnu/llvm/compiler-rt/lib/scudo/standalone/
H A Dquarantine.h21 static const u32 MaxCount = 1019; member
25 void *Batch[MaxCount];
37 DCHECK_LT(Count, MaxCount); in push_back()
43 return Count + From->Count <= MaxCount; in canMerge()
47 DCHECK_LE(Count + From->Count, MaxCount); in merge()
75 if (List.empty() || List.back()->Count == QuarantineBatch::MaxCount) { in enqueue()
141 BatchCount * QuarantineBatch::MaxCount; in getStats()
H A Dlocal_cache.h121 if (C->Count == C->MaxCount) in deallocate()
173 u16 MaxCount; in alignas() local
183 if (LIKELY(C->MaxCount)) in initCacheMaybe()
186 DCHECK_NE(C->MaxCount, 0U); in initCacheMaybe()
193 P->MaxCount = static_cast<u16>(2 * TransferBatch::getMaxCached(Size)); in initCache()
223 const u16 Count = Min(static_cast<u16>(C->MaxCount / 2), C->Count); in drain()
H A Dsecondary.h153 const u32 MaxCount = atomic_load_relaxed(&MaxEntriesCount); in store() local
202 if (EntriesCount >= MaxCount) { in store()
206 for (u32 I = 0; I < MaxCount; I++) { in store()
232 const u32 MaxCount = atomic_load_relaxed(&MaxEntriesCount); in retrieve() local
240 for (u32 I = 0; I < MaxCount; I++) { in retrieve()
302 const u32 MaxCount = static_cast<u32>(Value); in setOption() local
303 if (MaxCount > Config::SecondaryCacheEntriesArraySize) in setOption()
305 atomic_store_relaxed(&MaxEntriesCount, MaxCount); in setOption()
327 const u32 MaxCount = atomic_load_relaxed(&MaxEntriesCount); in disableMemoryTagging() local
328 for (u32 I = 0; I < MaxCount; I++) in disableMemoryTagging()
H A Dprimary32.h578 const u16 MaxCount = TransferBatch::getMaxCached(Size); in populateFreeList() local
579 DCHECK_GT(MaxCount, 0U); in populateFreeList()
586 Min(MaxNumBatches * MaxCount, in populateFreeList()
606 const u16 N = static_cast<u16>(Min<u32>(MaxCount, NumberOfBlocks - I)); in populateFreeList()
H A Dprimary64.h565 const u16 MaxCount = TransferBatch::getMaxCached(Size); in populateFreeList() local
569 const uptr TotalUserBytes = Region->AllocatedUser + MaxCount * Size; in populateFreeList()
603 MaxNumBatches * MaxCount, in populateFreeList()
621 const u16 N = static_cast<u16>(Min<u32>(MaxCount, NumberOfBlocks - I)); in populateFreeList()
/openbsd/gnu/llvm/llvm/include/llvm/ProfileData/
H A DProfileCommon.h51 uint64_t MaxCount = 0; variable
103 if (Count > MaxCount) in addCount()
104 MaxCount = Count; in addCount()
H A DSampleProf.h934 uint64_t MaxCount = 0;
936 MaxCount = std::max(MaxCount, L.second.getSamples());
938 return MaxCount;
941 MaxCount = std::max(MaxCount, F.second.getMaxCountInside());
942 return MaxCount;
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/
H A DInstrumentation.h157 static inline uint64_t calculateCountScale(uint64_t MaxCount) { in calculateCountScale() argument
158 return MaxCount < std::numeric_limits<uint32_t>::max() in calculateCountScale()
160 : MaxCount / std::numeric_limits<uint32_t>::max() + 1; in calculateCountScale()
/openbsd/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DPGOMemOPSizeOpt.cpp295 uint64_t MaxCount = 0; in perform() local
327 if (C > MaxCount) in perform()
328 MaxCount = C; in perform()
345 if (RemainCount > MaxCount) in perform()
346 MaxCount = RemainCount; in perform()
440 if (MaxCount) in perform()
441 setProfMetadata(Func.getParent(), SI, CaseCounts, MaxCount); in perform()
H A DPGOInstrumentation.cpp1134 else if (PSI->isColdCount(MaxCount)) in markFunctionAttributes()
1685 uint64_t MaxCount = 0; in setBranchWeights() local
1694 if (EdgeCount > MaxCount) in setBranchWeights()
1695 MaxCount = EdgeCount; in setBranchWeights()
1699 if (MaxCount) in setBranchWeights()
1700 setProfMetadata(M, TI, EdgeCounts, MaxCount); in setBranchWeights()
1768 uint64_t MaxCount = std::max(SCounts[0], SCounts[1]); in annotateOneSelectInst() local
1769 if (MaxCount) in annotateOneSelectInst()
2298 uint64_t MaxCount) { in setProfMetadata() argument
2300 assert(MaxCount > 0 && "Bad max count"); in setProfMetadata()
[all …]
H A DIndirectCallPromotion.cpp250 uint64_t MaxCount = (Count >= ElseCount ? Count : ElseCount); in promoteIndirectCall() local
251 uint64_t Scale = calculateCountScale(MaxCount); in promoteIndirectCall()
/openbsd/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/
H A Dquarantine_test.cpp56 for (scudo::uptr I = 2; I < scudo::QuarantineBatch::MaxCount; ++I) in TEST()
58 EXPECT_TRUE(Into.Count + From.Count == scudo::QuarantineBatch::MaxCount); in TEST()
62 EXPECT_TRUE(Into.Count == scudo::QuarantineBatch::MaxCount); in TEST()
126 const scudo::uptr NumBlocks = scudo::QuarantineBatch::MaxCount - 1; in TEST()
156 scudo::QuarantineBatch::MaxCount * NumBatchesAfterMerge; in TEST()
H A Drelease_test.cpp133 static const scudo::u16 MaxCount = SizeClassMap::MaxNumCachedHint; member
136 DCHECK_LT(Count, MaxCount); in add()
147 scudo::uptr Batch[MaxCount];
191 if (CurrentBatch->getCount() == Batch::MaxCount) in testReleaseFreeMemoryToOS()
/openbsd/gnu/llvm/llvm/lib/IR/
H A DProfileSummary.cpp214 uint64_t NumCounts, TotalCount, NumFunctions, MaxFunctionCount, MaxCount, in getFromMD() local
219 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "MaxCount", MaxCount)) in getFromMD()
246 MaxCount, MaxInternalCount, MaxFunctionCount, in getFromMD()
254 OS << "Maximum block count: " << MaxCount << "\n"; in printSummary()
/openbsd/gnu/llvm/clang/lib/ASTMatchers/Dynamic/
H A DMarshallers.h875 VariadicOperatorMatcherDescriptor(unsigned MinCount, unsigned MaxCount,
877 : MinCount(MinCount), MaxCount(MaxCount), Op(Op),
883 if (Args.size() < MinCount || MaxCount < Args.size()) {
885 (MaxCount == std::numeric_limits<unsigned>::max() ? ""
886 : Twine(MaxCount))
928 const unsigned MaxCount;
1147 template <unsigned MinCount, unsigned MaxCount>
1149 ast_matchers::internal::VariadicOperatorMatcherFunc<MinCount, MaxCount>
1153 MinCount, MaxCount, Func.Op, MatcherName);
/openbsd/gnu/llvm/llvm/lib/ProfileData/
H A DProfileSummaryBuilder.cpp188 ProfileSummary::PSK_Sample, DetailedSummary, TotalCount, MaxCount, 0, in getSummary()
224 ProfileSummary::PSK_Instr, DetailedSummary, TotalCount, MaxCount, in getSummary()
H A DInstrProf.cpp633 uint64_t MaxCount = 0; in overlap() local
638 MaxCount = std::max(Other.Counts[I], MaxCount); in overlap()
643 if (MaxCount >= ValueCutoff) { in overlap()
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DLoopUnrollPass.cpp202 UP.MaxCount = std::numeric_limits<unsigned>::max(); in gatherUnrollingPreferences()
239 UP.MaxCount = UnrollMaxCount; in gatherUnrollingPreferences()
854 if (count > UP.MaxCount) in shouldPartialUnroll()
855 count = UP.MaxCount; in shouldPartialUnroll()
874 if (count > UP.MaxCount) in shouldPartialUnroll()
875 count = UP.MaxCount; in shouldPartialUnroll()
1109 if (UP.Count > UP.MaxCount) in computeUnrollCount()
1110 UP.Count = UP.MaxCount; in computeUnrollCount()
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/Instrumentation/
H A DPGOInstrumentation.h94 uint64_t MaxCount);
/openbsd/gnu/llvm/llvm/tools/llvm-rc/
H A DResourceScriptParser.h104 size_t MaxCount);
H A DResourceScriptParser.cpp290 size_t MaxCount) { in readIntsWithCommas() argument
291 assert(MinCount <= MaxCount); in readIntsWithCommas()
303 for (size_t i = 0; i < MaxCount; ++i) { in readIntsWithCommas()
/openbsd/gnu/llvm/clang/include/clang/Frontend/
H A DVerifyDiagnosticConsumer.h200 static const unsigned MaxCount = std::numeric_limits<unsigned>::max();
/openbsd/gnu/llvm/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp478 uint64_t MaxCount = 0; member
491 MaxCount = std::max(MaxCount, Record->Counts[I]); in InstrProfileEntry()
509 if (!IFE.MaxCount || IFE.ZeroCounterRatio > ZeroCounterThreshold) { in updateInstrProfileEntry()
535 uint64_t Denominator = IFE.MaxCount; in updateInstrProfileEntry()
805 It->second.MaxCount > ColdInstrThreshold || in adjustInstrProfile()
2604 uint64_t MaxCount; member
2608 : TotalCount(0), TotalCountPercent(0.0f), MaxCount(0), EntryCount(0) {} in HotFuncInfo()
2612 MaxCount(MS), EntryCount(ES) {} in HotFuncInfo()
2663 FOS << R.MaxCount; in dumpHotFunctionList()
/openbsd/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp317 UP.MaxCount = 1; in getUnrollingPreferences()
321 UP.MaxCount = Max; in getUnrollingPreferences()
322 if (UP.MaxCount <= 1) in getUnrollingPreferences()

12