Home
last modified time | relevance | path

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

/freebsd/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()
156 Header->NumCounters * __llvm_profile_counter_entry_size(); in __llvm_profile_merge_from_buffer()
207 unsigned NC = SrcData->NumCounters; in __llvm_profile_merge_from_buffer()
H A DInstrProfilingPlatformOther.c55 CountersFirst + Data->NumCounters * __llvm_profile_counter_entry_size(); in __llvm_profile_register_function()
67 Data->NumCounters * __llvm_profile_counter_entry_size()); in __llvm_profile_register_function()
H A DInstrProfilingWriter.c278 const uint64_t NumCounters = in lprofWriteDataImpl() local
/freebsd/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
361 NumCounters = AnnotationFormValue->getAsUnsignedConstant(); in correlateProfileDataImpl()
364 if (!FunctionName || !CFGHash || !CounterPtr || !NumCounters) { in correlateProfileDataImpl()
369 << " NumCounters=" << NumCounters << "\n"; in correlateProfileDataImpl()
401 P.NumCounters = *NumCounters; in correlateProfileDataImpl()
411 CounterOffset, FunctionPtr.value_or(0), *NumCounters); in correlateProfileDataImpl()
468 I->FunctionPointer, I->NumCounters); in correlateProfileDataImpl()
H A DInstrProfReader.cpp414 uint64_t NumCounters; in readNextRecord() local
417 if ((Line++)->getAsInteger(10, NumCounters)) in readNextRecord()
420 if (NumCounters == 0) in readNextRecord()
425 Record.Counts.reserve(NumCounters); in readNextRecord()
426 for (uint64_t I = 0; I < NumCounters; ++I) { in readNextRecord()
601 auto CountersSize = swap(Header.NumCounters) * getCounterTypeSize(); in readHeader()
689 uint32_t NumCounters = swap(Data->NumCounters); in readRawCounts() local
690 if (NumCounters == 0) in readRawCounts()
709 if (NumCounters > MaxNumCounters) in readRawCounts()
711 ("number of counters " + Twine(NumCounters) + in readRawCounts()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Drelease.h207 : Regions(0), NumCounters(0), CounterSizeBitsLog(0), CounterMask(0),
230 NumCounters = CountersPerRegion; in reset()
247 roundUp(NumCounters, static_cast<uptr>(1U) << PackingRatioLog) >> in get()
255 uptr getCount() const { return NumCounters; } in inc()
259 DCHECK_LT(I, NumCounters); in inc()
289 const uptr Top = Min(To + 1, NumCounters); in setAsAllCounted()
307 const uptr Top = Min(To + 1, NumCounters); in updateAsAllCountedIf()
337 uptr NumCounters;
316 uptr NumCounters; global() variable
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProfCorrelator.h103 uint32_t NumCounters;
158 uint32_t NumCounters);
90 uint32_t NumCounters; global() member
H A DInstrProfData.inc90 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \
91 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters))
159 INSTR_PROF_RAW_HEADER(uint64_t, NumCounters, NumCounters)
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrProfiling.cpp1663 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in createRegionCounters() local
1668 auto *CounterArrTy = ArrayType::get(CounterTy, NumCounters); in createRegionCounters()
1670 std::vector<Constant *> InitialValues(NumCounters, in createRegionCounters()
1677 auto *CounterTy = ArrayType::get(Type::getInt64Ty(Ctx), NumCounters); in createRegionCounters()
1800 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in createDataVariable() local
1907 uint64_t NumCounters = TotalNS * NumCountersPerValueSite; in emitVNodes() local
1916 if (NumCounters < INSTR_PROF_MIN_VAL_COUNTS) in emitVNodes()
1917 NumCounters = std::max(INSTR_PROF_MIN_VAL_COUNTS, (int)NumCounters * 2); in emitVNodes()
1926 ArrayType *VNodesTy = ArrayType::get(VNodeTy, NumCounters); in emitVNodes()
H A DPGOInstrumentation.cpp902 unsigned NumCounters = in instrumentOneFunc() local
944 NumCounters += PGOBlockCoverage ? 8 : 1; in instrumentOneFunc()
951 {Name, CFGHash, Builder.getInt32(NumCounters), Builder.getInt32(I)}); in instrumentOneFunc()
965 {Name, CFGHash, Builder.getInt32(NumCounters), Builder.getInt32(I++)}); in instrumentOneFunc()
969 FuncInfo.SIVisitor.instrumentSelects(&I, NumCounters, FuncInfo.FuncNameVar, in instrumentOneFunc()
971 assert(I == NumCounters); in instrumentOneFunc()
1231 unsigned NumCounters = in setInstrumentedCounts() local
1235 if (NumCounters != CountFromProfile.size()) { in setInstrumentedCounts()
H A DGCOVProfiling.cpp1245 auto *NumCounters = Builder.CreateLoad( in insertCounterWriteout()
1256 Builder.CreateICmpSLT(Builder.getInt32(0), NumCounters); in insertCounterWriteout()
1299 auto *CounterLoopCond = Builder.CreateICmpSLT(NextJV, NumCounters); in insertCounterWriteout()
1248 auto *NumCounters = Builder.CreateLoad( insertCounterWriteout() local
/freebsd/contrib/llvm-project/compiler-rt/include/profile/
H A DInstrProfData.inc90 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \
91 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters))
159 INSTR_PROF_RAW_HEADER(uint64_t, NumCounters, NumCounters)