summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/callgraph/tasks.hh
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
commit967be9e750221ab2ab783f95df79bb26d290a45e (patch)
tree6802900a5e975f9f68b169f0f503f040056d6952 /tiger-compiler/src/callgraph/tasks.hh
add: added projectsHEADmain
Diffstat (limited to 'tiger-compiler/src/callgraph/tasks.hh')
-rw-r--r--tiger-compiler/src/callgraph/tasks.hh46
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