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 call‐site edge from this node to a callee.

CalledFunctionsVector

Vector of call records representing outgoing edges from this node.

const_iterator

Const iterator over outgoing call records.

iterator

Mutable iterator over outgoing call records.

Member Functions

Name

Description

CallGraphNode [constructor]

Constructors

~CallGraphNode [destructor]

Destroy this node; asserts that no references remain.

operator= [deleted]

Deleted copy assignment; nodes are owned by the call graph.

addCalledFunction

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

begin

begin overloads

dump

Print out this call graph node.

empty

Return true if this node has no outgoing call edges.

end

end overloads

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

Print this call graph node to OS.

removeAllCalledFunctions

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

removeCallEdge

Remove the call edge at iterator I.

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

Return the number of outgoing call edges.

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