LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::ctx_profile::ContextNode Class Referencefinal

#include "llvm/ProfileData/CtxInstrContextNode.h"

Public Member Functions

 ContextNode (GUID Guid, uint32_t NrCounters, uint32_t NrCallsites, ContextNode *Next=nullptr)
 
uint64_tcounters ()
 
uint32_t counters_size () const
 
uint32_t callsites_size () const
 
const uint64_tcounters () const
 
ContextNode ** subContexts ()
 
ContextNode *constsubContexts () const
 
GUID guid () const
 
ContextNodenext () const
 
size_t size () const
 
uint64_t entrycount () const
 

Static Public Member Functions

static size_t getAllocSize (uint32_t NrCounters, uint32_t NrCallsites)
 

Detailed Description

Definition at line 68 of file CtxInstrContextNode.h.

Constructor & Destructor Documentation

◆ ContextNode()

llvm::ctx_profile::ContextNode::ContextNode ( GUID  Guid,
uint32_t  NrCounters,
uint32_t  NrCallsites,
ContextNode Next = nullptr 
)
inline

Definition at line 75 of file CtxInstrContextNode.h.

References llvm::Guid.

Member Function Documentation

◆ callsites_size()

uint32_t llvm::ctx_profile::ContextNode::callsites_size ( ) const
inline

Definition at line 92 of file CtxInstrContextNode.h.

◆ counters() [1/2]

uint64_t * llvm::ctx_profile::ContextNode::counters ( )
inline

Definition at line 86 of file CtxInstrContextNode.h.

Referenced by counters(), entrycount(), and subContexts().

◆ counters() [2/2]

const uint64_t * llvm::ctx_profile::ContextNode::counters ( ) const
inline

Definition at line 94 of file CtxInstrContextNode.h.

References counters().

◆ counters_size()

uint32_t llvm::ctx_profile::ContextNode::counters_size ( ) const
inline

Definition at line 91 of file CtxInstrContextNode.h.

◆ entrycount()

uint64_t llvm::ctx_profile::ContextNode::entrycount ( ) const
inline

Definition at line 112 of file CtxInstrContextNode.h.

References counters().

◆ getAllocSize()

static size_t llvm::ctx_profile::ContextNode::getAllocSize ( uint32_t  NrCounters,
uint32_t  NrCallsites 
)
inlinestatic

Definition at line 80 of file CtxInstrContextNode.h.

Referenced by size().

◆ guid()

GUID llvm::ctx_profile::ContextNode::guid ( ) const
inline

Definition at line 107 of file CtxInstrContextNode.h.

References llvm::Guid.

◆ next()

ContextNode * llvm::ctx_profile::ContextNode::next ( ) const
inline

Definition at line 108 of file CtxInstrContextNode.h.

◆ size()

size_t llvm::ctx_profile::ContextNode::size ( ) const
inline

Definition at line 110 of file CtxInstrContextNode.h.

References getAllocSize().

◆ subContexts() [1/2]

ContextNode ** llvm::ctx_profile::ContextNode::subContexts ( )
inline

Definition at line 99 of file CtxInstrContextNode.h.

References counters().

Referenced by subContexts().

◆ subContexts() [2/2]

ContextNode *const * llvm::ctx_profile::ContextNode::subContexts ( ) const
inline

Definition at line 103 of file CtxInstrContextNode.h.

References subContexts().


The documentation for this class was generated from the following file: