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 Nest &) override
 
- Public Member Functions inherited from mim::NestPhase< Lam >
 NestPhase (World &world, std::string_view name, bool dirty, bool elide_empty)
 
const Nestnest () const
 
- Public Member Functions inherited from mim::ClosedMutPhase< Lam >
 ClosedMutPhase (World &world, std::string_view name, bool dirty, 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::ClosedMutPhase< Lam >
Lamroot () const
 
- Protected Member Functions inherited from mim::Phase
void set_name (std::string name)
 

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 12 of file add_mem.h.

Constructor & Destructor Documentation

◆ AddMem()

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

Definition at line 14 of file add_mem.h.

Member Function Documentation

◆ visit()

void mim::plug::mem::AddMem::visit ( const Nest & nest)
overridevirtual

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