The src/callgraph
Directory
Namespace callgraph
, delivered for TC-EXTS. Generate the callgraph
for inlining and static links.
File: local.am (src/callgraph/)
This is a Makefile configuration relative to the
src/callgraph/
directory. It is responsible for the integration into thelibtc
library with everything exported from thecallgraph
module.
File: libcallgraph.* (src/callgraph/)
The interface of the
callgraph
module. It exports two procedures,callgraph_compute
andparentgraph_compute
.
File: tasks.* (src/callgraph/)
Tasks related to the
callgraph
module (see: The src/task Directory).
File: call-graph-visitor.* (src/callgraph/)
The
callgraph
visitor 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
FunctionDec
graph. Each vertex represents aast::FunctionDec
, and each edge a function declaration link (relationship, call, etc.)
File: parent-graph-visitor.* (src/callgraph/)
The
parentgraph
visitor implementation, which walks the abstract syntax tree to compute the functions relationship (nested functions), as a graph.