diff options
| author | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
|---|---|---|
| committer | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
| commit | 967be9e750221ab2ab783f95df79bb26d290a45e (patch) | |
| tree | 6802900a5e975f9f68b169f0f503f040056d6952 /tiger-compiler/src/inlining/tasks.hh | |
Diffstat (limited to 'tiger-compiler/src/inlining/tasks.hh')
| -rw-r--r-- | tiger-compiler/src/inlining/tasks.hh | 36 |
1 files changed, 36 insertions, 0 deletions
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 <config.h> +#include <misc/fwd.hh> +#include <task/libtask.hh> + +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 |
