A node in the call graph for a module.

Synopsis

Declared in <llvm/Analysis/CallGraph.h>

class CallGraphNode;

Description

Typically represents a function in the call graph. There are also special "null" nodes used to represent theoretical entries in the call graph.

Type Aliases

Name

Description

CallRecord

A pair of the calling instruction (a call or invoke) and the call graph node being called. Call graph node may have two types of call records which represent an edge in the call graph ‐ reference or a call edge. Reference edges are not associated with any call instruction and are created with the first field set to None, while real call edges have instruction address in this field. Therefore, all real call edges are expected to have a value in the first field and it is not supposed to be nullptr. Reference edges, for example, are used for connecting broker function caller to the callback function for callback call sites.

CalledFunctionsVector

const_iterator

iterator

Member Functions

Name

Description

CallGraphNode [constructor]

Creates a node for the specified function.

~CallGraphNode [destructor]

Destructor

operator= [deleted]

Copy assignment operator

addCalledFunction

Adds a function to the list of functions called by this one.

begin

dump

Print out this call graph node.

empty

end

getFunction

Returns the function that this call graph node represents.

getNumReferences

Returns the number of other CallGraphNodes in this CallGraph that reference this node in their callee list.

operator[]

Returns the i'th called function.

print

removeAllCalledFunctions

Removes all edges from this CallGraphNode to any functions it calls.

removeCallEdge

removeOneAbstractEdgeTo

Removes one edge associated with a null callsite from this node to the specified callee function.

replaceCallEdge

Replaces the edge in the node for the specified call site with a new one.

size

stealCalledFunctionsFrom

Moves all the callee information from N to this node.

Friends

Name

Description

llvm::CallGraph

The basic data container for the call graph of a Module of IR.

Created with MrDocs