Home
last modified time | relevance | path

Searched refs:NumCounters (Results 1 – 12 of 12) sorted by relevance

/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingMerge.c26 uint64_t NumCounters = __llvm_profile_get_num_counters( in lprofGetLoadModuleSignature() local
36 return (NamesSize << 40) + (NumCounters << 30) + (NumData << 20) + in lprofGetLoadModuleSignature()
69 Header->NumCounters != in __llvm_profile_check_compatibility()
84 Header->NumCounters * __llvm_profile_counter_entry_size() + in __llvm_profile_check_compatibility()
93 SrcData->NumCounters != DstData->NumCounters || in __llvm_profile_check_compatibility()
136 Header->NumCounters * __llvm_profile_counter_entry_size(); in __llvm_profile_merge_from_buffer()
188 unsigned NC = SrcData->NumCounters; in __llvm_profile_merge_from_buffer()
H A DInstrProfilingPlatformOther.c51 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 DInstrProfilingWriter.c271 const uint64_t NumCounters = in lprofWriteDataImpl() local
/freebsd-14.2/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProfCorrelator.cpp232 io.mapRequired("Num Counters", P.NumCounters); in mapping()
261 uint32_t NumCounters) { in addDataProbe() argument
276 maybeSwap<uint32_t>(NumCounters), in addDataProbe()
339 std::optional<uint64_t> NumCounters; in correlateProfileDataImpl() local
363 NumCounters = AnnotationFormValue->getAsUnsignedConstant(); in correlateProfileDataImpl()
366 if (!FunctionName || !CFGHash || !CounterPtr || !NumCounters) { in correlateProfileDataImpl()
371 << " NumCounters=" << NumCounters << "\n"; in correlateProfileDataImpl()
403 P.NumCounters = *NumCounters; in correlateProfileDataImpl()
413 CounterOffset, FunctionPtr.value_or(0), *NumCounters); in correlateProfileDataImpl()
470 I->FunctionPointer, I->NumCounters); in correlateProfileDataImpl()
H A DInstrProfReader.cpp409 uint64_t NumCounters; in readNextRecord() local
412 if ((Line++)->getAsInteger(10, NumCounters)) in readNextRecord()
415 if (NumCounters == 0) in readNextRecord()
420 Record.Counts.reserve(NumCounters); in readNextRecord()
421 for (uint64_t I = 0; I < NumCounters; ++I) { in readNextRecord()
650 uint32_t NumCounters = swap(Data->NumCounters); in readRawCounts() local
651 if (NumCounters == 0) in readRawCounts()
670 if (NumCounters > MaxNumCounters) in readRawCounts()
672 ("number of counters " + Twine(NumCounters) + in readRawCounts()
678 Record.Counts.reserve(NumCounters); in readRawCounts()
[all …]
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Drelease.h207 : Regions(0), NumCounters(0), CounterSizeBitsLog(0), CounterMask(0), in RegionPageMap()
230 NumCounters = CountersPerRegion; in reset()
247 roundUp(NumCounters, static_cast<uptr>(1U) << PackingRatioLog) >> in reset()
255 uptr getCount() const { return NumCounters; } in getCount()
259 DCHECK_LT(I, NumCounters); in get()
289 const uptr Top = Min(To + 1, NumCounters); in incRange()
307 const uptr Top = Min(To + 1, NumCounters); in setAsAllCountedRange()
337 uptr NumCounters; variable
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProfCorrelator.h103 uint32_t NumCounters; member
158 uint32_t NumCounters);
H A DInstrProfData.inc88 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \
89 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters))
138 INSTR_PROF_RAW_HEADER(uint64_t, NumCounters, NumCounters)
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrProfiling.cpp1323 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in createRegionCounters() local
1328 auto *CounterArrTy = ArrayType::get(CounterTy, NumCounters); in createRegionCounters()
1330 std::vector<Constant *> InitialValues(NumCounters, in createRegionCounters()
1337 auto *CounterTy = ArrayType::get(Type::getInt64Ty(Ctx), NumCounters); in createRegionCounters()
1461 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in createDataVariable() local
1568 uint64_t NumCounters = TotalNS * NumCountersPerValueSite; in emitVNodes() local
1577 if (NumCounters < INSTR_PROF_MIN_VAL_COUNTS) in emitVNodes()
1578 NumCounters = std::max(INSTR_PROF_MIN_VAL_COUNTS, (int)NumCounters * 2); in emitVNodes()
1587 ArrayType *VNodesTy = ArrayType::get(VNodeTy, NumCounters); in emitVNodes()
H A DPGOInstrumentation.cpp878 unsigned NumCounters = in instrumentOneFunc() local
883 NumCounters += PGOBlockCoverage ? 8 : 1; in instrumentOneFunc()
890 {Name, CFGHash, Builder.getInt32(NumCounters), Builder.getInt32(I)}); in instrumentOneFunc()
904 {Name, CFGHash, Builder.getInt32(NumCounters), Builder.getInt32(I++)}); in instrumentOneFunc()
908 FuncInfo.SIVisitor.instrumentSelects(&I, NumCounters, FuncInfo.FuncNameVar, in instrumentOneFunc()
910 assert(I == NumCounters); in instrumentOneFunc()
1177 unsigned NumCounters = in setInstrumentedCounts() local
1181 if (NumCounters != CountFromProfile.size()) { in setInstrumentedCounts()
H A DGCOVProfiling.cpp1245 auto *NumCounters = Builder.CreateLoad( in insertCounterWriteout() local
1256 Builder.CreateICmpSLT(Builder.getInt32(0), NumCounters); in insertCounterWriteout()
1299 auto *CounterLoopCond = Builder.CreateICmpSLT(NextJV, NumCounters); in insertCounterWriteout()
/freebsd-14.2/contrib/llvm-project/compiler-rt/include/profile/
H A DInstrProfData.inc88 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \
89 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters))
138 INSTR_PROF_RAW_HEADER(uint64_t, NumCounters, NumCounters)