Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Compiler_HIR_Function Struct Reference

Typed HIR function. More...

#include <Compiler_HIR_Model.H>

Inheritance diagram for Aleph::Compiler_HIR_Function:
[legend]
Collaboration diagram for Aleph::Compiler_HIR_Function:
[legend]

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.
 

Detailed Description

Typed HIR function.

Definition at line 525 of file Compiler_HIR_Model.H.

Constructor & Destructor Documentation

◆ Compiler_HIR_Function()

Aleph::Compiler_HIR_Function::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 = {} 
)
inlinenoexcept

Definition at line 533 of file Compiler_HIR_Model.H.

Member Data Documentation

◆ body

◆ name

◆ name_span

Source_Span Aleph::Compiler_HIR_Function::name_span

Span of the function name.

Definition at line 528 of file Compiler_HIR_Model.H.

◆ parameters

◆ type_id

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().


The documentation for this struct was generated from the following file: