MLIR  16.0.0git
Functions
CallGraph.cpp File Reference
#include "mlir/Analysis/CallGraph.h"
#include "mlir/IR/Operation.h"
#include "mlir/IR/SymbolTable.h"
#include "mlir/Interfaces/CallInterfaces.h"
#include "llvm/ADT/PointerUnion.h"
#include "llvm/ADT/SCCIterator.h"
#include "llvm/Support/raw_ostream.h"
+ Include dependency graph for CallGraph.cpp:

Go to the source code of this file.

Functions

static void computeCallGraph (Operation *op, CallGraph &cg, SymbolTableCollection &symbolTable, CallGraphNode *parentNode, bool resolveCalls)
 Recursively compute the callgraph edges for the given operation. More...
 

Function Documentation

◆ computeCallGraph()

static void computeCallGraph ( Operation op,
CallGraph cg,
SymbolTableCollection symbolTable,
CallGraphNode parentNode,
bool  resolveCalls 
)
static

Recursively compute the callgraph edges for the given operation.

Computed edges are placed into the given callgraph object.

Definition at line 70 of file CallGraph.cpp.

References mlir::CallGraphNode::addCallEdge(), mlir::CallGraph::getOrAddNode(), mlir::Operation::getRegions(), and mlir::CallGraph::resolveCallable().

Referenced by mlir::CallGraph::CallGraph().