MimIR 0.1
MimIR is my Intermediate Representation
|
#include <mim/be/emitter.h>
Public Attributes | |
Tab | tab |
Protected Member Functions | |
Emitter (World &world, std::string_view name, std::ostream &ostream) | |
std::ostream & | ostream () const |
Value | emit (const Def *def) |
Recursively emits code. | |
Value | emit_unsafe (const Def *def) |
As above but returning !child().is_valid(value) is permitted. | |
void | visit (const Nest &nest) override |
![]() | |
Lam * | root () const |
![]() | |
void | set_name (std::string name) |
Protected Attributes | |
Lam * | curr_lam_ = nullptr |
std::ostream & | ostream_ |
Scheduler | scheduler_ |
DefMap< Value > | locals_ |
DefMap< Value > | globals_ |
DefMap< Type > | types_ |
LamMap< BB > | lam2bb_ |
Additional Inherited Members | |
![]() | |
NestPhase (World &world, std::string_view name, bool dirty, bool elide_empty) | |
const Nest & | nest () const |
![]() | |
ClosedMutPhase (World &world, std::string_view name, bool dirty, bool elide_empty) | |
void | start () override |
Actual entry. | |
![]() | |
Phase (World &world, std::string_view name, bool dirty) | |
virtual | ~Phase ()=default |
World & | world () |
std::string_view | name () const |
bool | is_dirty () const |
virtual void | run () |
Entry point and generates some debug output; invokes Phase::start. | |
template<class P, class... Args> | |
static void | run (Args &&... args) |
Runs a single Phase. | |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
As above but returning !child().is_valid(value)
is permitted.
Definition at line 42 of file emitter.h.
Referenced by mim::Emitter< std::string, std::string, BB, Emitter >::emit().
|
inlineprotected |
|
inlineoverrideprotectedvirtual |
Implements mim::NestPhase< Lam >.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Tab mim::Emitter< Value, Type, BB, Child >::tab |
|
protected |