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 Scope &) override |
Public Member Functions inherited from mim::ScopePhase | |
ScopePhase (World &world, std::string_view name, bool elide_empty) | |
void | start () override |
Actual entry. | |
Public Member Functions inherited from mim::Phase | |
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 | |
Static Public Member Functions inherited from mim::Phase | |
template<class P , class... Args> | |
static void | run (Args &&... args) |
Runs a single Phase. | |
Protected Member Functions inherited from mim::ScopePhase | |
const Scope & | scope () const |
Protected Member Functions inherited from mim::Phase | |
Protected Attributes inherited from mim::Phase | |
World & | world_ |
std::string | name_ |
bool | dirty_ |
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.
|
inline |
Definition at line 13 of file add_mem.h.
References mim::Phase::dirty_.
|
overridevirtual |
Implements mim::ScopePhase.
Definition at line 66 of file add_mem.cpp.
References mim::Scope::entry(), mim::Scope::free_muts(), mim::Def::isa_mut(), and mim::ScopePhase::scope().