| /freebsd/contrib/llvm-project/compiler-rt/lib/ctx_profile/ |
| H A D | CtxInstrContextNode.h | 71 const uint32_t NumCounters; variable 75 ContextNode(GUID Guid, uint32_t NumCounters, uint32_t NumCallsites, 77 : Guid(Guid), Next(Next), NumCounters(NumCounters), in Guid() 80 static inline size_t getAllocSize(uint32_t NumCounters, in getAllocSize() argument 82 return sizeof(ContextNode) + sizeof(uint64_t) * NumCounters + in getAllocSize() 92 uint32_t counters_size() const { return NumCounters; } in counters_size() 101 return reinterpret_cast<ContextNode **>(&(counters()[NumCounters])); in subContexts() 111 size_t size() const { return getAllocSize(NumCounters, NumCallsites); } in size()
|
| H A D | CtxInstrProfiling.cpp | 118 uint32_t NumCounters, in allocContextNode() argument 122 return new (Place) ContextNode(Guid, NumCounters, NumCallsites, Next); in allocContextNode() 191 uint32_t NumCounters, uint32_t NumCallsites) { in getCallsiteSlow() argument 192 auto AllocSize = ContextNode::getAllocSize(NumCounters, NumCallsites); in getCallsiteSlow() 205 auto *Ret = allocContextNode(AllocPlace, Guid, NumCounters, NumCallsites, in getCallsiteSlow() 212 uint32_t NumCounters) { in getFlatProfile() argument 224 auto NeededSize = ContextNode::getAllocSize(NumCounters, 0); in getFlatProfile() 239 auto *Ret = allocContextNode(AllocBuff, Guid, NumCounters, 0); in getFlatProfile() 257 void setupContext(ContextRoot *Root, GUID Guid, uint32_t NumCounters, in setupContext() argument 264 const auto Needed = ContextNode::getAllocSize(NumCounters, NumCallsites); in setupContext() [all …]
|
| H A D | CtxInstrProfiling.h | 212 uint32_t NumCounters,
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
| H A D | CtxInstrContextNode.h | 71 const uint32_t NumCounters; variable 75 ContextNode(GUID Guid, uint32_t NumCounters, uint32_t NumCallsites, 77 : Guid(Guid), Next(Next), NumCounters(NumCounters), in Guid() 80 static inline size_t getAllocSize(uint32_t NumCounters, in getAllocSize() argument 82 return sizeof(ContextNode) + sizeof(uint64_t) * NumCounters + in getAllocSize() 92 uint32_t counters_size() const { return NumCounters; } in counters_size() 101 return reinterpret_cast<ContextNode **>(&(counters()[NumCounters])); in subContexts() 111 size_t size() const { return getAllocSize(NumCounters, NumCallsites); } in size()
|
| H A D | InstrProfCorrelator.h | 108 uint32_t NumCounters; member 163 uint32_t NumCounters);
|
| 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/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() 151 Header->NumCounters * __llvm_profile_counter_entry_size(); in __llvm_profile_merge_from_buffer() 206 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/Transforms/Instrumentation/ |
| H A D | PGOCtxProfLowering.cpp | 82 uint32_t NumCounters = 0; in getNumCountersAndCallsites() local 89 assert((!NumCounters || V == NumCounters) && in getNumCountersAndCallsites() 92 NumCounters = V; in getNumCountersAndCallsites() 102 if (NumCounters && NumCallsites) in getNumCountersAndCallsites() 103 return std::make_pair(NumCounters, NumCallsites); in getNumCountersAndCallsites() 107 return {NumCounters, NumCallsites}; in getNumCountersAndCallsites() 250 auto [NumCounters, NumCallsites] = getNumCountersAndCallsites(F); in lowerFunction() 290 {ContextNodeTy, ArrayType::get(Builder.getInt64Ty(), NumCounters), in lowerFunction() 310 StartCtx, {TheRootFuctionData, Guid, Builder.getInt32(NumCounters), in lowerFunction() 316 Builder.getInt32(NumCounters), in lowerFunction()
|
| H A D | InstrProfiling.cpp | 1660 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in createRegionCounters() local 1665 auto *CounterArrTy = ArrayType::get(CounterTy, NumCounters); in createRegionCounters() 1667 std::vector<Constant *> InitialValues(NumCounters, in createRegionCounters() 1674 auto *CounterTy = ArrayType::get(Type::getInt64Ty(Ctx), NumCounters); in createRegionCounters() 1798 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in createDataVariable() local 1909 uint64_t NumCounters = TotalNS * NumCountersPerValueSite; in emitVNodes() local 1918 if (NumCounters < INSTR_PROF_MIN_VAL_COUNTS) in emitVNodes() 1919 NumCounters = std::max(INSTR_PROF_MIN_VAL_COUNTS, (int)NumCounters * 2); in emitVNodes() 1928 ArrayType *VNodesTy = ArrayType::get(VNodeTy, NumCounters); in emitVNodes()
|
| H A D | PGOInstrumentation.cpp | 968 unsigned NumCounters = in instrument() local 1013 NumCounters += PGOBlockCoverage ? 8 : 1; in instrument() 1020 Builder.getInt32(NumCounters), in instrument() 1034 Builder.getInt32(NumCounters), in instrument() 1039 FuncInfo.SIVisitor.instrumentSelects(&I, NumCounters, Name, in instrument() 1041 assert(I == NumCounters); in instrument() 1312 unsigned NumCounters = in setInstrumentedCounts() local 1316 if (NumCounters != CountFromProfile.size()) { in setInstrumentedCounts()
|
| H A D | GCOVProfiling.cpp | 1262 auto *NumCounters = Builder.CreateLoad( in insertCounterWriteout() local 1273 Builder.CreateICmpSLT(Builder.getInt32(0), NumCounters); in insertCounterWriteout() 1316 auto *CounterLoopCond = Builder.CreateICmpSLT(NextJV, NumCounters); in insertCounterWriteout()
|
| /freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | InstrProfCorrelator.cpp | 256 io.mapRequired("Num Counters", P.NumCounters); in mapping() 285 uint32_t NumCounters) { in addDataProbe() argument 300 maybeSwap<uint32_t>(NumCounters), in addDataProbe() 363 std::optional<uint64_t> NumCounters; in correlateProfileDataImpl() local 385 NumCounters = AnnotationFormValue->getAsUnsignedConstant(); in correlateProfileDataImpl() 388 if (!FunctionName || !CFGHash || !CounterPtr || !NumCounters) { in correlateProfileDataImpl() 393 << " NumCounters=" << NumCounters << "\n"; in correlateProfileDataImpl() 425 P.NumCounters = *NumCounters; in correlateProfileDataImpl() 435 CounterOffset, FunctionPtr.value_or(0), *NumCounters); in correlateProfileDataImpl() 492 I->FunctionPointer, I->NumCounters); in correlateProfileDataImpl()
|
| H A D | InstrProfReader.cpp | 426 uint64_t NumCounters; in readNextRecord() local 429 if ((Line++)->getAsInteger(10, NumCounters)) in readNextRecord() 432 if (NumCounters == 0) in readNextRecord() 437 Record.Counts.reserve(NumCounters); in readNextRecord() 438 for (uint64_t I = 0; I < NumCounters; ++I) { in readNextRecord() 613 auto CountersSize = swap(Header.NumCounters) * getCounterTypeSize(); in readHeader() 722 uint32_t NumCounters = swap(Data->NumCounters); in readRawCounts() local 723 if (NumCounters == 0) in readRawCounts() 742 if (NumCounters > MaxNumCounters) in readRawCounts() 744 ("number of counters " + Twine(NumCounters) + in readRawCounts() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | release.h | 215 : Regions(0), NumCounters(0), CounterSizeBitsLog(0), CounterMask(0), in RegionPageMap() 238 NumCounters = CountersPerRegion; in reset() 255 roundUp(NumCounters, static_cast<uptr>(1U) << PackingRatioLog) >> in reset() 263 uptr getCount() const { return NumCounters; } in getCount() 267 DCHECK_LT(I, NumCounters); in get() 297 const uptr Top = Min(To + 1, NumCounters); in incRange() 315 const uptr Top = Min(To + 1, NumCounters); in setAsAllCountedRange() 345 uptr NumCounters; variable
|
| /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)
|