MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::ast::ArrOrPackExpr< arr > Class Template Reference

«dbg: shape; body» or ‹dbg: shape; body› More...

#include <mim/ast/ast.h>

Inheritance diagram for mim::ast::ArrOrPackExpr< arr >:
[legend]

Public Member Functions

 ArrOrPackExpr (Loc loc, Ptr< IdPtrn > &&shape, Ptr< Expr > &&body)
 
const IdPtrnshape () const
 
const Exprbody () const
 
void bind (Scopes &) const override
 
std::ostream & stream (Tab &, std::ostream &) const override
 
- Public Member Functions inherited from mim::ast::Expr
Ref emit (Emitter &) const
 
virtual Ref emit_decl (Emitter &, Ref) const
 
virtual void emit_body (Emitter &, Ref) 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

template<bool arr>
class mim::ast::ArrOrPackExpr< arr >

«dbg: shape; body» or ‹dbg: shape; body›

Definition at line 612 of file ast.h.

Constructor & Destructor Documentation

◆ ArrOrPackExpr()

template<bool arr>
mim::ast::ArrOrPackExpr< arr >::ArrOrPackExpr ( Loc loc,
Ptr< IdPtrn > && shape,
Ptr< Expr > && body )
inline

Definition at line 614 of file ast.h.

Member Function Documentation

◆ bind()

template<bool arr>
template void mim::ast::ArrOrPackExpr< arr >::bind ( Scopes & ) const
overridevirtual

Implements mim::ast::Expr.

Definition at line 185 of file bind.cpp.

◆ body()

template<bool arr>
const Expr * mim::ast::ArrOrPackExpr< arr >::body ( ) const
inline

Definition at line 620 of file ast.h.

◆ emit_()

template<bool arr>
template Ref mim::ast::ArrOrPackExpr< arr >::emit_ ( Emitter & ) const
overrideprivatevirtual

Implements mim::ast::Expr.

Definition at line 268 of file emit.cpp.

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

◆ shape()

template<bool arr>
const IdPtrn * mim::ast::ArrOrPackExpr< arr >::shape ( ) const
inline

Definition at line 619 of file ast.h.

◆ stream()

template<bool arr>
template std::ostream & mim::ast::ArrOrPackExpr< arr >::stream ( Tab & ,
std::ostream &  ) const
overridevirtual

Implements mim::ast::Node.

Definition at line 140 of file stream.cpp.

References mim::print().


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