Home
last modified time | relevance | path

Searched refs:NrCounters (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/ctx_profile/
H A DCtxInstrContextNode.h71 const uint32_t NrCounters; variable
75 ContextNode(GUID Guid, uint32_t NrCounters, uint32_t NrCallsites,
77 : Guid(Guid), Next(Next), NrCounters(NrCounters), in Guid()
80 static inline size_t getAllocSize(uint32_t NrCounters, uint32_t NrCallsites) { in getAllocSize() argument
81 return sizeof(ContextNode) + sizeof(uint64_t) * NrCounters + in getAllocSize()
91 uint32_t counters_size() const { return NrCounters; } in counters_size()
100 return reinterpret_cast<ContextNode **>(&(counters()[NrCounters])); in subContexts()
110 size_t size() const { return getAllocSize(NrCounters, NrCallsites); } in size()
H A DCtxInstrProfiling.cpp95 uint32_t NrCounters, uint32_t NrCallsites, in allocContextNode() argument
98 return new (Place) ContextNode(Guid, NrCounters, NrCallsites, Next); in allocContextNode()
164 uint32_t NrCounters, uint32_t NrCallsites) { in getCallsiteSlow() argument
165 auto AllocSize = ContextNode::getAllocSize(NrCounters, NrCallsites); in getCallsiteSlow()
178 auto *Ret = allocContextNode(AllocPlace, Guid, NrCounters, NrCallsites, in getCallsiteSlow()
185 uint32_t NrCounters, in __llvm_ctx_profile_get_context() argument
225 : getCallsiteSlow(Guid, CallsiteContext, NrCounters, in __llvm_ctx_profile_get_context()
228 Ret->counters_size() != NrCounters) in __llvm_ctx_profile_get_context()
232 NrCounters, Ret->guid(), Ret->callsites_size(), in __llvm_ctx_profile_get_context()
240 void setupContext(ContextRoot *Root, GUID Guid, uint32_t NrCounters, in setupContext() argument
[all …]
H A DCtxInstrProfiling.h156 uint32_t NrCounters,
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DCtxInstrContextNode.h71 const uint32_t NrCounters; variable
75 ContextNode(GUID Guid, uint32_t NrCounters, uint32_t NrCallsites,
77 : Guid(Guid), Next(Next), NrCounters(NrCounters), in Guid()
80 static inline size_t getAllocSize(uint32_t NrCounters, uint32_t NrCallsites) { in getAllocSize() argument
81 return sizeof(ContextNode) + sizeof(uint64_t) * NrCounters + in getAllocSize()
91 uint32_t counters_size() const { return NrCounters; } in counters_size()
100 return reinterpret_cast<ContextNode **>(&(counters()[NrCounters])); in subContexts()
110 size_t size() const { return getAllocSize(NrCounters, NrCallsites); } in size()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOCtxProfLowering.cpp73 uint32_t NrCounters = 0; in getNrCountersAndCallsites() local
80 assert((!NrCounters || V == NrCounters) && in getNrCountersAndCallsites()
83 NrCounters = V; in getNrCountersAndCallsites()
93 if (NrCounters && NrCallsites) in getNrCountersAndCallsites()
94 return std::make_pair(NrCounters, NrCallsites); in getNrCountersAndCallsites()
98 return {NrCounters, NrCallsites}; in getNrCountersAndCallsites()
209 auto [NrCounters, NrCallsites] = getNrCountersAndCallsites(F); in lowerFunction()
233 {ContextNodeTy, ArrayType::get(Builder.getInt64Ty(), NrCounters), in lowerFunction()
244 Builder.getInt32(NrCounters), in lowerFunction()
250 Builder.CreateCall(GetCtx, {&F, Guid, Builder.getInt32(NrCounters), in lowerFunction()