| /openbsd-src/gnu/llvm/llvm/lib/ProfileData/ |
| H A D | InstrProfCorrelator.cpp | 172 io.mapRequired("Num Counters", P.NumCounters); in mapping() 200 uint32_t NumCounters) { in addProbe() argument 213 maybeSwap<uint32_t>(NumCounters), in addProbe() 272 std::optional<uint64_t> NumCounters; in correlateProfileDataImpl() local 296 NumCounters = AnnotationFormValue->getAsUnsignedConstant(); in correlateProfileDataImpl() 299 if (!FunctionName || !CFGHash || !CounterPtr || !NumCounters) { in correlateProfileDataImpl() 303 << "\n\tNumCounters: " << NumCounters); in correlateProfileDataImpl() 332 P.NumCounters = *NumCounters; in correlateProfileDataImpl() 342 FunctionPtr.value_or(0), *NumCounters); in correlateProfileDataImpl()
|
| H A D | InstrProfReader.cpp | 373 uint64_t NumCounters; in readNextRecord() local 376 if ((Line++)->getAsInteger(10, NumCounters)) in readNextRecord() 379 if (NumCounters == 0) in readNextRecord() 384 Record.Counts.reserve(NumCounters); in readNextRecord() 385 for (uint64_t I = 0; I < NumCounters; ++I) { in readNextRecord() 558 uint32_t NumCounters = swap(Data->NumCounters); in readRawCounts() local 559 if (NumCounters == 0) in readRawCounts() 578 if (NumCounters > MaxNumCounters) in readRawCounts() 580 ("number of counters " + Twine(NumCounters) + in readRawCounts() 586 Record.Counts.reserve(NumCounters); in readRawCounts() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/profile/ |
| H A D | InstrProfilingMerge.c | 26 uint64_t NumCounters = __llvm_profile_get_num_counters( in lprofGetLoadModuleSignature() local 36 return (NamesSize << 40) + (NumCounters << 30) + (NumData << 20) + in lprofGetLoadModuleSignature() 81 SrcData->NumCounters != DstData->NumCounters) in __llvm_profile_check_compatibility() 152 unsigned NC = SrcData->NumCounters; in __llvm_profile_merge_from_buffer()
|
| H A D | InstrProfilingPlatformOther.c | 51 CountersFirst + Data->NumCounters * __llvm_profile_counter_entry_size(); in __llvm_profile_register_function() 63 Data->NumCounters * __llvm_profile_counter_entry_size()); in __llvm_profile_register_function()
|
| H A D | InstrProfilingWriter.c | 272 const uint64_t NumCounters = in lprofWriteDataImpl() local 292 const uint64_t CountersSize = NumCounters; in lprofWriteDataImpl()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/ |
| H A D | release_test.cpp | 39 const scudo::uptr NumCounters = in TEST() local 41 scudo::RegionPageMap PageMap(1U, NumCounters, in TEST() 44 for (scudo::uptr C = 1; C < NumCounters - 1; C++) { in TEST() 49 EXPECT_EQ(0UL, PageMap.get(0U, NumCounters - 1)); in TEST() 50 PageMap.inc(0U, NumCounters - 1); in TEST() 52 PageMap.incRange(0u, 0U, NumCounters - 1); in TEST() 53 for (scudo::uptr C = 0; C < NumCounters; C++) in TEST()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/ |
| H A D | release.h | 57 NumCounters(0), in RegionPageMap() 85 NumCounters = CountersPerRegion; in reset() 102 roundUpTo(NumCounters, static_cast<uptr>(1U) << PackingRatioLog) >> in reset() 124 uptr getCount() const { return NumCounters; } in getCount() 128 DCHECK_LT(I, NumCounters); in get() 146 const uptr Top = Min(To + 1, NumCounters); in incRange() 172 uptr NumCounters; variable
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
| H A D | InstrProfiling.cpp | 841 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in createRegionCounters() local 846 auto *CounterArrTy = ArrayType::get(CounterTy, NumCounters); in createRegionCounters() 848 std::vector<Constant *> InitialValues(NumCounters, in createRegionCounters() 855 auto *CounterTy = ArrayType::get(Type::getInt64Ty(Ctx), NumCounters); in createRegionCounters() 932 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in getOrCreateRegionCounters() local 1094 uint64_t NumCounters = TotalNS * NumCountersPerValueSite; in emitVNodes() local 1103 if (NumCounters < INSTR_PROF_MIN_VAL_COUNTS) in emitVNodes() 1104 NumCounters = std::max(INSTR_PROF_MIN_VAL_COUNTS, (int)NumCounters * 2); in emitVNodes() 1113 ArrayType *VNodesTy = ArrayType::get(VNodeTy, NumCounters); in emitVNodes()
|
| H A D | PGOInstrumentation.cpp | 879 unsigned NumCounters = in instrumentOneFunc() local 891 {Name, CFGHash, Builder.getInt32(NumCounters), Builder.getInt32(I++)}); in instrumentOneFunc() 895 FuncInfo.SIVisitor.instrumentSelects(F, &I, NumCounters, FuncInfo.FuncNameVar, in instrumentOneFunc() 897 assert(I == NumCounters); in instrumentOneFunc() 1148 unsigned NumCounters = in setInstrumentedCounts() local 1152 if (NumCounters != CountFromProfile.size()) { in setInstrumentedCounts()
|
| H A D | GCOVProfiling.cpp | 1240 auto *NumCounters = Builder.CreateLoad( in insertCounterWriteout() local 1251 Builder.CreateICmpSLT(Builder.getInt32(0), NumCounters); in insertCounterWriteout() 1294 auto *CounterLoopCond = Builder.CreateICmpSLT(NextJV, NumCounters); in insertCounterWriteout()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ProfileData/ |
| H A D | InstrProfCorrelator.h | 90 uint32_t NumCounters; member 141 IntPtrT FunctionPtr, uint32_t NumCounters);
|
| H A D | InstrProfData.inc | 87 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \ 88 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters)) 134 /* FIXME: A more accurate name is NumCounters */
|
| /openbsd-src/gnu/llvm/compiler-rt/include/profile/ |
| H A D | InstrProfData.inc | 87 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \ 88 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters)) 134 /* FIXME: A more accurate name is NumCounters */
|