Trie node representing a calling context and its sample profile.

Synopsis

Declared in <llvm/Transforms/IPO/SampleContextTracker.h>

class ContextTrieNode;

Description

Internal trie tree representation used for tracking context tree and sample profiles. The path from root node to a given node represents the context of that nodes' profile.

Member Functions

Name

Description

ContextTrieNode [constructor]

Construct a context trie node.

addFunctionSize

Add FSize to the accumulated function size for this context.

dumpNode

Dump this context node to the debug stream.

dumpTree

Dump the subtree rooted at this node to the debug stream.

getAllChildContext

Return the map of all child contexts keyed by location and callee.

getCallSiteLoc

Return the callsite location of this node in its parent context.

getChildContext

Return the child context for ChildName at CallSite, or null.

getFuncName

Return the function name associated with this context node.

getFunctionSamples

Return the function samples for this context, or null if unset.

getFunctionSize

Return the accumulated function size for this context, if known.

getHottestChildContext

Return the hottest child context at CallSite, or null if none exist.

getOrCreateChildContext

Return the child context for ChildName at CallSite, creating it when allowed.

getParentContext

Return the parent context node, or null for the root.

removeChildContext

Remove the child context for ChildName at CallSite.

setCallSiteLoc

Set the callsite location of this node in its parent context.

setFunctionSamples

Set the function samples associated with this context.

setParentContext

Set the parent context node.

Created with MrDocs