My Project
Classes | Public Types | Public Member Functions | List of all members
mlir::CallGraph Class Reference

#include <CallGraph.h>

Public Types

using iterator = NodeIterator
 An iterator over the nodes of the graph. More...
 

Public Member Functions

 CallGraph (Operation *op)
 
CallGraphNodegetOrAddNode (Region *region, CallGraphNode *parentNode)
 Get or add a call graph node for the given region. More...
 
CallGraphNodelookupNode (Region *region) const
 
CallGraphNodegetExternalNode () const
 Return the callgraph node representing the indirect-external callee. More...
 
CallGraphNoderesolveCallable (CallInterfaceCallable callable, Operation *from=nullptr) const
 
iterator begin () const
 
iterator end () const
 
void dump () const
 Dump the graph in a human readable format. More...
 
void print (raw_ostream &os) const
 

Member Typedef Documentation

◆ iterator

using mlir::CallGraph::iterator = NodeIterator

An iterator over the nodes of the graph.

Constructor & Destructor Documentation

◆ CallGraph()

CallGraph::CallGraph ( Operation op)

Member Function Documentation

◆ begin()

iterator mlir::CallGraph::begin ( ) const
inline

◆ dump()

void CallGraph::dump ( ) const

Dump the graph in a human readable format.

◆ end()

iterator mlir::CallGraph::end ( ) const
inline

◆ getExternalNode()

CallGraphNode* mlir::CallGraph::getExternalNode ( ) const
inline

Return the callgraph node representing the indirect-external callee.

◆ getOrAddNode()

CallGraphNode * CallGraph::getOrAddNode ( Region region,
CallGraphNode parentNode 
)

Get or add a call graph node for the given region.

Get or add a call graph node for the given region. parentNode corresponds to the direct node in the callgraph that contains the parent operation of region, or nullptr if there is no parent node.

◆ lookupNode()

CallGraphNode * CallGraph::lookupNode ( Region region) const

Lookup a call graph node for the given region, or nullptr if none is registered.

◆ print()

void CallGraph::print ( raw_ostream &  os) const

◆ resolveCallable()

CallGraphNode * CallGraph::resolveCallable ( CallInterfaceCallable  callable,
Operation from = nullptr 
) const

Resolve the callable for given callee to a node in the callgraph, or the external node if a valid node was not resolved. 'from' provides an anchor for symbol table lookups, and is only required if the callable is a symbol reference.

Resolve the callable for given callee to a node in the callgraph, or the external node if a valid node was not resolved.


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