|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Typed HIR function. More...
#include <Compiler_HIR_Model.H>
Public Member Functions | |
| Compiler_HIR_Function (std::string value="", const Compiler_Type_Id ty=0, const Source_Span &name_sp={}, Compiler_HIR_Block_Stmt *block=nullptr, const Source_Span &sp={}) noexcept | |
Public Member Functions inherited from Aleph::Compiler_HIR_Node | |
| Compiler_HIR_Node (const Source_Span &sp={}) noexcept | |
Public Attributes | |
| std::string | name |
| Function name. | |
| Source_Span | name_span |
| Span of the function name. | |
| Compiler_Type_Id | type_id = 0 |
| Full function type. | |
| DynArray< Compiler_HIR_Param > | parameters |
| Parameters in declaration order. | |
| Compiler_HIR_Block_Stmt * | body = nullptr |
| Function body. | |
Public Attributes inherited from Aleph::Compiler_HIR_Node | |
| Source_Span | span |
| Source region associated with the HIR node. | |
Typed HIR function.
Definition at line 525 of file Compiler_HIR_Model.H.
|
inlinenoexcept |
Definition at line 533 of file Compiler_HIR_Model.H.
| Compiler_HIR_Block_Stmt* Aleph::Compiler_HIR_Function::body = nullptr |
Function body.
Definition at line 531 of file Compiler_HIR_Model.H.
Referenced by Aleph::Interpreter_Runtime::call_hir_function(), Aleph::compiler_dump_hir_function(), Aleph::Compiler_CFG_Lowering::lower_function(), and Aleph::Compiler_IR_Lowering::lower_module().
| std::string Aleph::Compiler_HIR_Function::name |
Function name.
Definition at line 527 of file Compiler_HIR_Model.H.
Referenced by Aleph::Interpreter_Runtime::call_hir_function(), Aleph::compiler_dump_hir_function(), Aleph::Interpreter_Runtime::install_module_function(), and Aleph::Compiler_CFG_Lowering::lower_function().
| Source_Span Aleph::Compiler_HIR_Function::name_span |
Span of the function name.
Definition at line 528 of file Compiler_HIR_Model.H.
| DynArray<Compiler_HIR_Param> Aleph::Compiler_HIR_Function::parameters |
Parameters in declaration order.
Definition at line 530 of file Compiler_HIR_Model.H.
Referenced by Aleph::Interpreter_Runtime::call_hir_function(), Aleph::compiler_dump_hir_function(), and Aleph::Compiler_IR_Lowering::Module_Builder::lower_function_body().
| Compiler_Type_Id Aleph::Compiler_HIR_Function::type_id = 0 |
Full function type.
Definition at line 529 of file Compiler_HIR_Model.H.
Referenced by Aleph::compiler_dump_hir_function(), and Aleph::Compiler_CFG_Lowering::lower_function().