MimIR 0.1
MimIR is my Intermediate Representation
|
This phase adds mems to all lambdas and continuations. More...
#include <mim/plug/mem/phase/add_mem.h>
Public Member Functions | |
AddMem (World &world) | |
void | visit (const Nest &) override |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
template<class P , class... Args> | |
static void | run (Args &&... args) |
Runs a single Phase. | |
![]() | |
Lam * | root () const |
![]() | |
void | set_name (std::string name) |
This phase adds mems to all lambdas and continuations.
It's primarily to be used as preparation for other phases that rely on all continuations having a mem.
|
overridevirtual |
Implements mim::NestPhase< Lam >.
Definition at line 64 of file add_mem.cpp.
References mim::NestPhase< Lam >::nest(), and mim::ClosedMutPhase< Lam >::root().