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

ret ptrn = callee $ arg; body More...

#include <mim/ast/ast.h>

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

Public Member Functions

 RetExpr (Loc loc, Ptr< Ptrn > ptrn, Ptr< Expr > callee, Ptr< Expr > arg, Ptr< Expr > body)
const Ptrnptrn () const
const Exprcallee () const
const Exprarg () const
const Exprbody () const
void bind (Scopes &) const override
void stream (fe::Tab &, std::ostream &) const override
Public Member Functions inherited from mim::ast::Expr
const Defemit (Emitter &) const
const Defemit_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 Defemit_ (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

ret ptrn = callee $ arg; body

Definition at line 776 of file ast.h.

Constructor & Destructor Documentation

◆ RetExpr()

mim::ast::RetExpr::RetExpr ( Loc loc,
Ptr< Ptrn > ptrn,
Ptr< Expr > callee,
Ptr< Expr > arg,
Ptr< Expr > body )
inline

Definition at line 778 of file ast.h.

References arg(), body(), callee(), mim::ast::Expr::Expr(), mim::ast::Node::loc(), and ptrn().

Member Function Documentation

◆ arg()

const Expr * mim::ast::RetExpr::arg ( ) const
inline

Definition at line 787 of file ast.h.

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

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

◆ bind()

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

Implements mim::ast::Expr.

Definition at line 292 of file bind.cpp.

References arg(), body(), callee(), and ptrn().

◆ body()

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

Definition at line 788 of file ast.h.

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

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

◆ callee()

const Expr * mim::ast::RetExpr::callee ( ) const
inline

Definition at line 786 of file ast.h.

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

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

◆ emit_()

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

◆ ptrn()

const Ptrn * mim::ast::RetExpr::ptrn ( ) const
inline

Definition at line 785 of file ast.h.

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

◆ stream()

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

Implements mim::ast::Node.

Definition at line 176 of file stream.cpp.

References arg(), body(), callee(), ptrn(), and mim::ast::S::S().


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