MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::ast::LamExpr Class Reference

Wraps a LamDecl as Expr. More...

#include <mim/ast/ast.h>

Inheritance diagram for mim::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 mim::ast::Expr
Ref emit (Emitter &) const
 
- Public Member Functions inherited from mim::ast::Node
Loc loc () const
 
void dump () const
 

Private Member Functions

Ref emit_ (Emitter &) const override
 

Additional Inherited Members

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

Detailed Description

Wraps a LamDecl as Expr.

Definition at line 500 of file ast.h.

Constructor & Destructor Documentation

◆ LamExpr()

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

Definition at line 153 of file ast.cpp.

Member Function Documentation

◆ bind()

void mim::ast::LamExpr::bind ( Scopes & s) const
overridevirtual

Implements mim::ast::Expr.

Definition at line 158 of file bind.cpp.

◆ emit_()

Ref mim::ast::LamExpr::emit_ ( Emitter & e) const
overrideprivatevirtual

Implements mim::ast::Expr.

Definition at line 232 of file emit.cpp.

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

◆ emit_body()

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

Reimplemented from mim::ast::Expr.

Definition at line 230 of file emit.cpp.

◆ emit_decl()

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

Reimplemented from mim::ast::Expr.

Definition at line 229 of file emit.cpp.

◆ lam()

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

Definition at line 504 of file ast.h.

◆ stream()

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

Implements mim::ast::Node.

Definition at line 126 of file stream.cpp.

References mim::print().


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