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/inliner.hh | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tiger-compiler/src/inlining/inliner.hh (limited to 'tiger-compiler/src/inlining/inliner.hh') diff --git a/tiger-compiler/src/inlining/inliner.hh b/tiger-compiler/src/inlining/inliner.hh new file mode 100644 index 0000000..fc2f71f --- /dev/null +++ b/tiger-compiler/src/inlining/inliner.hh @@ -0,0 +1,44 @@ +/** + ** \file inlining/inliner.hh + ** \brief Declaration of inlining::Inliner. + */ + +#pragma once + +#include + +#include +#include +#include +#include + +namespace inlining +{ + /// Perform inline expansion of functions. + class Inliner : public astclone::Cloner + { + public: + using super_type = astclone::Cloner; + + // Import overloaded virtual functions. + using super_type::operator(); + + /// Build an Inliner. + Inliner(const ast::Ast& tree); + + /// \name Visit methods. + /// \{ + // FIXME: Some code was deleted here. + /// \} + + /// \name Getters. + /// \{ + const misc::set& rec_funs_get() const; + /// \} + + private: + /// Recursive functions of the program. + misc::set rec_funs_; + }; + +} // namespace inlining -- cgit v1.2.3