Lines Matching defs:ContextNode
36 ContextNode *markAsScratch(const ContextNode *Ctx) {
37 return reinterpret_cast<ContextNode *>(reinterpret_cast<uint64_t>(Ctx) | 1);
69 const auto *Ctx = reinterpret_cast<const ContextNode *>(Pos);
82 const auto *Ctx = reinterpret_cast<const ContextNode *>(Pos);
94 inline ContextNode *allocContextNode(char *Place, GUID Guid,
97 ContextNode *Next = nullptr) {
99 return new (Place) ContextNode(Guid, NumCounters, NumCallsites, Next);
102 void resetContextNode(ContextNode &Node) {
112 void onContextEnter(ContextNode &Node) { ++Node.counters()[0]; }
126 markAsScratch(reinterpret_cast<ContextNode *>(__Buffer))
131 __thread ContextNode **volatile __llvm_ctx_profile_callsite[2] = {0, 0};
164 ContextNode *getCallsiteSlow(GUID Guid, ContextNode **InsertionPoint,
166 auto AllocSize = ContextNode::getAllocSize(NumCounters, NumCallsites);
185 ContextNode *__llvm_ctx_profile_get_context(void *Callee, GUID Guid,
248 const auto Needed = ContextNode::getAllocSize(NumCounters, NumCallsites);
257 ContextNode *__llvm_ctx_profile_start_context(
298 bool (*Writer)(void *W, const ContextNode &)) {