The src/callgraph Directory
Namespace callgraph, delivered for TC-EXTS. Generate the callgraph
for inlining and static links.
File: local.am (src/callgraph/)
The Makefile configuration relative to the
src/callgraph/directory. It is responsible for the integration into thelibtclibrary with everything exported from thecallgraphmodule.
File: libcallgraph.* (src/callgraph/)
The interface of the
callgraphmodule. It exports two procedures,callgraph_computeandparentgraph_compute.
File: tasks.* (src/callgraph/)
The tasks relative to the
callgraphmodule (see: The src/task Directory).
File: call-graph-visitor.* (src/callgraph/)
The
callgraphvisitor implementation, which walks the abstract syntax tree to compute the set of calls per function, as a graph. Its transitive closure is used to compute the set of recursive functions for the inliner.
File: fundec-graph.* (src/callgraph/)
Implementation of a
FunctionDecgraph. Each vertex represents aast::FunctionDec, and each edge a function declaration link (relationship, call, etc.)
File: parent-graph-visitor.* (src/callgraph/)
The
parentgraphvisitor implementation, which walks the abstract syntax tree to compute the functions relationship (nested functions), as a graph.