Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
thorin::ast::LamExpr Class Reference

Wraps a LamDecl as Expr. More...

#include <thorin/ast/ast.h>

Inheritance diagram for thorin::ast::LamExpr:
[legend]

Public Member Functions

 LamExpr (Ptr< LamDecl > &&lam)
 
const LamDecllam () const
 
void bind (Scopes &) const override
 
Ref emit_decl (Emitter &, Ref type) const override
 
void emit_body (Emitter &, Ref decl) const override
 
std::ostream & stream (Tab &, std::ostream &) const override
 
- Public Member Functions inherited from thorin::ast::Expr
Ref emit (Emitter &) const
 
- Public Member Functions inherited from thorin::ast::Node
Loc loc () const
 
void dump () const
 

Private Member Functions

Ref emit_ (Emitter &) const override
 

Additional Inherited Members

- Protected Member Functions inherited from thorin::ast::Expr
 Expr (Loc loc)
 
- Protected Member Functions inherited from thorin::ast::Node
 Node (Loc loc)
 
virtual ~Node ()
 

Detailed Description

Wraps a LamDecl as Expr.

Definition at line 510 of file ast.h.

Constructor & Destructor Documentation

◆ LamExpr()

thorin::ast::LamExpr::LamExpr ( Ptr< LamDecl > &&  lam)

Definition at line 153 of file ast.cpp.

Member Function Documentation

◆ bind()

void thorin::ast::LamExpr::bind ( Scopes s) const
overridevirtual

Implements thorin::ast::Expr.

Definition at line 162 of file bind.cpp.

◆ emit_()

Ref thorin::ast::LamExpr::emit_ ( Emitter e) const
overrideprivatevirtual

Implements thorin::ast::Expr.

Definition at line 232 of file emit.cpp.

References thorin::ast::PiExpr::emit_body(), and thorin::ast::PiExpr::emit_decl().

◆ emit_body()

void thorin::ast::LamExpr::emit_body ( Emitter e,
Ref  decl 
) const
overridevirtual

Reimplemented from thorin::ast::Expr.

Definition at line 230 of file emit.cpp.

◆ emit_decl()

Ref thorin::ast::LamExpr::emit_decl ( Emitter e,
Ref  type 
) const
overridevirtual

Reimplemented from thorin::ast::Expr.

Definition at line 229 of file emit.cpp.

◆ lam()

const LamDecl * thorin::ast::LamExpr::lam ( ) const
inline

Definition at line 514 of file ast.h.

◆ stream()

std::ostream & thorin::ast::LamExpr::stream ( Tab tab,
std::ostream &  os 
) const
overridevirtual

Implements thorin::ast::Node.

Definition at line 125 of file stream.cpp.

References thorin::print().


The documentation for this class was generated from the following files: