diff options
Diffstat (limited to 'tiger-compiler/src/callgraph/tasks.hh')
| -rw-r--r-- | tiger-compiler/src/callgraph/tasks.hh | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tiger-compiler/src/callgraph/tasks.hh b/tiger-compiler/src/callgraph/tasks.hh new file mode 100644 index 0000000..e1fc584 --- /dev/null +++ b/tiger-compiler/src/callgraph/tasks.hh @@ -0,0 +1,46 @@ +/** + ** \file callgraph/tasks.hh + ** \brief Callgraph module related tasks. + */ + +#pragma once + +#include <callgraph/fundec-graph.hh> +#include <task/libtask.hh> + +/// The Tasks of the escapes module. +namespace callgraph::tasks +{ + TASK_GROUP("3. Callgraph"); + + /*-------------. + | Call graph. | + `-------------*/ + + /// Build the call graph. + TASK_DECLARE("callgraph-compute", + "build the call graph", + callgraph_compute, + "bindings-compute"); + /// Dump the callgraph. + TASK_DECLARE("callgraph-dump", + "dump the call graph", + callgraph_dump, + "callgraph-compute"); + + /*---------------. + | Parent graph. | + `---------------*/ + + /// Build the parent graph. + TASK_DECLARE("parentgraph-compute", + "build the parent graph", + parentgraph_compute, + "parse"); + /// Dump the parentgraph. + TASK_DECLARE("parentgraph-dump", + "dump the parent graph", + parentgraph_dump, + "parentgraph-compute"); + +} // namespace callgraph::tasks |
