/freebsd/contrib/llvm-project/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() 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 D | InstrProfilingPlatformOther.c | 55 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 D | InstrProfilingWriter.c | 278 const uint64_t NumCounters = in lprofWriteDataImpl() local
|
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
H A D | InstrProfCorrelator.cpp | 232 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 D | InstrProfReader.cpp | 414 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 D | release.h | 207 : 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 D | InstrProfCorrelator.h | 103 uint32_t NumCounters; 158 uint32_t NumCounters); 90 uint32_t NumCounters; global() member
|
H A D | InstrProfData.inc | 90 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 D | InstrProfiling.cpp | 1663 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 D | PGOInstrumentation.cpp | 902 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 D | GCOVProfiling.cpp | 1245 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 D | InstrProfData.inc | 90 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)
|