|
MimIR 0.1
MimIR is my Intermediate Representation
|
.rec dbg: type = body
More...
#include <mim/ast/ast.h>
Public Member Functions | |
| 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 |
| virtual void | bind_decl (Scopes &) const |
| virtual void | bind_body (Scopes &) const |
| void | emit (Emitter &) const override |
| virtual void | emit_decl (Emitter &) const |
| virtual void | emit_body (Emitter &) const |
| std::ostream & | stream (Tab &, std::ostream &) const override |
Public Member Functions inherited from mim::ast::Decl | |
| const Def * | 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 | |
| const Def * | def_ = nullptr |
|
inline |
Definition at line 913 of file ast.h.
References body(), dbg(), mim::ast::Node::loc(), next(), type(), and mim::ast::ValDecl::ValDecl().
Referenced by mim::ast::LamDecl::LamDecl(), and next().
|
overridevirtual |
|
virtual |
|
virtual |
Reimplemented in mim::ast::LamDecl.
Definition at line 317 of file bind.cpp.
References body(), dbg(), mim::ast::Node::loc(), and type().
|
inline |
Definition at line 922 of file ast.h.
Referenced by mim::ast::LamDecl::bind_body(), bind_body(), bind_decl(), mim::ast::LamDecl::emit_body(), emit_body(), emit_decl(), mim::ast::LamDecl::LamDecl(), RecDecl(), mim::ast::LamDecl::stream(), and stream().
|
inline |
Definition at line 920 of file ast.h.
Referenced by bind(), mim::ast::LamDecl::bind_decl(), bind_decl(), mim::ast::LamDecl::emit_decl(), emit_decl(), mim::ast::LamDecl::LamDecl(), RecDecl(), mim::ast::LamDecl::stream(), and stream().
|
overridevirtual |
Implements mim::ast::ValDecl.
|
virtual |
Reimplemented in mim::ast::LamDecl.
Definition at line 440 of file emit.cpp.
References body(), and mim::ast::Decl::def_.
|
virtual |
Reimplemented in mim::ast::LamDecl.
Definition at line 434 of file emit.cpp.
References body(), dbg(), mim::ast::Decl::def_, and type().
|
inline |
Definition at line 923 of file ast.h.
References RecDecl().
Referenced by mim::ast::LamDecl::LamDecl(), and RecDecl().
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 205 of file stream.cpp.
References body(), dbg(), mim::print(), and type().
|
inline |
Definition at line 921 of file ast.h.
Referenced by bind_decl(), emit_decl(), RecDecl(), mim::ast::LamDecl::Dom::stream(), and stream().