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

«index: shape; body» or ‹index: shape; body› if SeqExpr::is_pack; index: is optional. More...

#include <mim/ast/ast.h>

Inheritance diagram for mim::ast::SeqExpr:
[legend]

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)

Detailed Description

«index: shape; body» or ‹index: shape; body› if SeqExpr::is_pack; index: is optional.

Definition at line 944 of file ast.h.

Constructor & Destructor Documentation

◆ SeqExpr()

mim::ast::SeqExpr::SeqExpr ( Loc loc,
bool is_pack,
Ptr< IdDecl > index,
Ptr< Expr > shape,
Ptr< Expr > body )
inline

Definition at line 946 of file ast.h.

References body(), mim::ast::Expr::Expr(), index(), is_pack(), mim::ast::Node::loc(), and shape().

Member Function Documentation

◆ bind()

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

Implements mim::ast::Expr.

Definition at line 329 of file bind.cpp.

References body(), index(), and shape().

◆ body()

const Expr * mim::ast::SeqExpr::body ( ) const
inline

Definition at line 956 of file ast.h.

References mim::ast::Expr::Expr().

Referenced by bind(), emit_(), SeqExpr(), and stream().

◆ emit_()

const Def * mim::ast::SeqExpr::emit_ ( Emitter & e) const
overrideprivatevirtual

◆ index()

const IdDecl * mim::ast::SeqExpr::index ( ) const
inline

Definition at line 954 of file ast.h.

Referenced by bind(), emit_(), SeqExpr(), and stream().

◆ is_pack()

bool mim::ast::SeqExpr::is_pack ( ) const
inline

Definition at line 953 of file ast.h.

Referenced by emit_(), SeqExpr(), and stream().

◆ shape()

const Expr * mim::ast::SeqExpr::shape ( ) const
inline

Definition at line 955 of file ast.h.

References mim::ast::Expr::Expr().

Referenced by bind(), emit_(), SeqExpr(), and stream().

◆ stream()

void mim::ast::SeqExpr::stream ( fe::Tab & tab,
std::ostream & os ) const
overridevirtual

Implements mim::ast::Node.

Definition at line 224 of file stream.cpp.

References body(), index(), is_pack(), mim::ast::S::S(), and shape().


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