MimIR 0.1
MimIR is my Intermediate Representation
|
One of: More...
#include <mim/ast/ast.h>
Classes | |
class | Dom |
Public Member Functions | |
LamDecl (Loc loc, Tok::Tag tag, bool is_external, Dbg dbg, Ptrs< Dom > &&doms, Ptr< Expr > &&codom, Ptr< Expr > &&body, Ptr< RecDecl > &&next) | |
Tok::Tag | tag () const |
bool | is_external () const |
const Ptrs< Dom > & | doms () const |
const Dom * | dom (size_t i) const |
size_t | num_doms () const |
const Expr * | codom () const |
void | bind_decl (Scopes &) const override |
void | bind_body (Scopes &) const override |
void | emit_decl (Emitter &) const override |
void | emit_body (Emitter &) const override |
std::ostream & | stream (Tab &, std::ostream &) const override |
Public Member Functions inherited from mim::ast::RecDecl | |
RecDecl (Loc loc, Dbg dbg, Ptr< Expr > &&type, Ptr< Expr > &&body, Ptr< RecDecl > &&next) | |
Dbg | dbg () const |
const Expr * | type () const |
const Expr * | body () const |
const RecDecl * | next () const |
void | bind (Scopes &) const override |
void | emit (Emitter &) const override |
std::ostream & | stream (Tab &, std::ostream &) const override |
Public Member Functions inherited from mim::ast::ValDecl | |
Public Member Functions inherited from mim::ast::Decl | |
Ref | def () const |
Public Member Functions inherited from mim::ast::Node | |
Loc | loc () const |
void | dump () const |
Additional Inherited Members | |
Protected Member Functions inherited from mim::ast::ValDecl | |
ValDecl (Loc loc) | |
Protected Member Functions inherited from mim::ast::Decl | |
Decl (Loc loc) | |
Protected Member Functions inherited from mim::ast::Node | |
Node (Loc loc) | |
virtual | ~Node () |
Protected Attributes inherited from mim::ast::Decl | |
Ref | def_ = nullptr |
One of:
λ dom_0 ... dom_n-1 -> codom
cn dom_0 ... dom_n-1
fn dom_0 ... dom_n-1 -> codom
lam dbg dom_0 ... dom_n-1 -> codom
con dbg dom_0 ... dom_n-1
fun dbg dom_0 ... dom_n-1 -> codom
|
inline |
Definition at line 831 of file ast.h.
References num_doms().
|
overridevirtual |
Reimplemented from mim::ast::RecDecl.
Definition at line 315 of file bind.cpp.
References mim::ast::PiExpr::Dom::bind().
|
overridevirtual |
Reimplemented from mim::ast::RecDecl.
Definition at line 285 of file bind.cpp.
References mim::ast::Expr::bind(), mim::ast::PiExpr::Dom::bind(), and mim::ast::Node::loc().
|
overridevirtual |
Reimplemented from mim::ast::RecDecl.
Definition at line 452 of file emit.cpp.
References mim::ast::Expr::emit().
|
overridevirtual |
Reimplemented from mim::ast::RecDecl.
Definition at line 424 of file emit.cpp.
References mim::ast::Expr::emit(), mim::ast::PiExpr::Dom::emit_type(), mim::ast::Node::loc(), mim::ast::PiExpr::Dom::pi_, and mim::Pi::set_codom().
|
inline |
|
overridevirtual |