From 967be9e750221ab2ab783f95df79bb26d290a45e Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:07:58 +0200 Subject: add: added projects --- tiger-compiler/src/inlining/tasks.hh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tiger-compiler/src/inlining/tasks.hh (limited to 'tiger-compiler/src/inlining/tasks.hh') diff --git a/tiger-compiler/src/inlining/tasks.hh b/tiger-compiler/src/inlining/tasks.hh new file mode 100644 index 0000000..6c190ed --- /dev/null +++ b/tiger-compiler/src/inlining/tasks.hh @@ -0,0 +1,36 @@ +/** + ** \file inlining/tasks.hh + ** \brief Inlining module tasks. + */ + +#pragma once + +#include +#include +#include + +namespace inlining::tasks +{ + TASK_GROUP("Inlining"); + + /*-----------. + | Inlining. | + `-----------*/ + + /// Expand the body of functions at the call sites. + TASK_DECLARE("inline", + "inline functions", + inline_expand, + "types-compute rename"); + + /*-------------------. + | Function pruning. | + `-------------------*/ + + /// Prune unused function definitions from the AST. + TASK_DECLARE("prune", + "prune unused functions", + prune, + "rename types-compute"); + +} // namespace inlining::tasks -- cgit v1.2.3