«index: shape; body» or ‹index: shape; body› if SeqExpr::is_pack; index: is optional. More...
#include <mim/ast/ast.h>
Public Member Functions | |
| SeqExpr (Loc loc, bool is_pack, Ptr< IdDecl > index, Ptr< Expr > shape, Ptr< Expr > body) | |
| bool | is_pack () const |
| const IdDecl * | index () const |
| const Expr * | shape () const |
| const Expr * | body () const |
| void | bind (Scopes &) const override |
| void | stream (fe::Tab &, std::ostream &) const override |
| Public Member Functions inherited from mim::ast::Expr | |
| const Def * | emit (Emitter &) const |
| const Def * | emit_decl (Emitter &, const Def *type) const |
| void | emit_body (Emitter &, const Def *decl) const |
| Public Member Functions inherited from mim::ast::Node | |
| Loc | loc () const |
| void | dump () const |
Private Member Functions | |
| const Def * | 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) | |
«index: shape; body» or ‹index: shape; body› if SeqExpr::is_pack; index: is optional.
|
inline |
Definition at line 946 of file ast.h.
References body(), mim::ast::Expr::Expr(), index(), is_pack(), mim::ast::Node::loc(), and shape().
|
overridevirtual |
|
inline |
Implements mim::ast::Expr.
Definition at line 840 of file emit.cpp.
References body(), mim::ast::Expr::emit(), index(), is_pack(), mim::Lit::isa(), shape(), and mim::VarRewriter::VarRewriter().
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 224 of file stream.cpp.
References body(), index(), is_pack(), mim::ast::S::S(), and shape().