Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DCtxInstrContextNode.h72 const uint32_t NrCallsites; variable
75 ContextNode(GUID Guid, uint32_t NrCounters, uint32_t NrCallsites,
78 NrCallsites(NrCallsites) {} in Guid()
80 static inline size_t getAllocSize(uint32_t NrCounters, uint32_t NrCallsites) { in getAllocSize() argument
82 sizeof(ContextNode *) * NrCallsites; in getAllocSize()
92 uint32_t callsites_size() const { return NrCallsites; } in callsites_size()
110 size_t size() const { return getAllocSize(NrCounters, NrCallsites); } in size()
/freebsd/contrib/llvm-project/compiler-rt/lib/ctx_profile/
H A DCtxInstrContextNode.h72 const uint32_t NrCallsites; variable
75 ContextNode(GUID Guid, uint32_t NrCounters, uint32_t NrCallsites,
78 NrCallsites(NrCallsites) {} in Guid()
80 static inline size_t getAllocSize(uint32_t NrCounters, uint32_t NrCallsites) { in getAllocSize() argument
82 sizeof(ContextNode *) * NrCallsites; in getAllocSize()
92 uint32_t callsites_size() const { return NrCallsites; } in callsites_size()
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()
186 uint32_t NrCallsites) { in __llvm_ctx_profile_get_context() argument
226 NrCallsites); in __llvm_ctx_profile_get_context()
227 if (Ret->callsites_size() != NrCallsites || in __llvm_ctx_profile_get_context()
231 reinterpret_cast<void *>(Ret), Guid, NrCallsites, in __llvm_ctx_profile_get_context()
241 uint32_t NrCallsites) { in setupContext() argument
[all …]
H A DCtxInstrProfiling.h157 uint32_t NrCallsites);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOCtxProfLowering.cpp74 uint32_t NrCallsites = 0; in getNrCountersAndCallsites() local
87 assert((!NrCallsites || V == NrCallsites) && in getNrCountersAndCallsites()
90 NrCallsites = 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()
234 ArrayType::get(Builder.getPtrTy(), NrCallsites)}); in lowerFunction()
245 Builder.getInt32(NrCallsites)}); in lowerFunction()
251 Builder.getInt32(NrCallsites)}); in lowerFunction()
[all …]