MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::plug::mem::AddMem Class Reference

This phase adds mems to all lambdas and continuations. More...

#include <mim/plug/mem/phase/add_mem.h>

Inheritance diagram for mim::plug::mem::AddMem:
[legend]

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
 
Worldworld ()
 
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 Scopescope () const
 
- Protected Member Functions inherited from mim::Phase
- Protected Attributes inherited from mim::Phase
Worldworld_
 
std::string name_
 
bool dirty_
 

Detailed Description

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.

Definition at line 11 of file add_mem.h.

Constructor & Destructor Documentation

◆ AddMem()

mim::plug::mem::AddMem::AddMem ( World & world)
inline

Definition at line 13 of file add_mem.h.

References mim::Phase::dirty_.

Member Function Documentation

◆ visit()

void mim::plug::mem::AddMem::visit ( const Scope & scope)
overridevirtual

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