MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::plug::mem::phase::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::phase::AddMem:
[legend]

Public Member Functions

 AddMem (World &world, flags_t annex)
 
void visit (const Nest &) override
 
- Public Member Functions inherited from mim::NestPhase< Lam >
 NestPhase (World &world, std::string name, bool elide_empty)
 
 NestPhase (World &world, flags_t annex, bool elide_empty)
 
const Nestnest () const
 
- Public Member Functions inherited from mim::ClosedMutPhase< Lam >
 ClosedMutPhase (World &world, std::string name, bool elide_empty)
 
 ClosedMutPhase (World &world, flags_t annex, bool elide_empty)
 
bool elide_empty () const
 
- Public Member Functions inherited from mim::Phase
 Phase (World &world, std::string name)
 
 Phase (World &world, flags_t annex)
 
bool todo () const
 
virtual void run ()
 Entry point and generates some debug output; invokes Phase::start.
 
- Public Member Functions inherited from mim::Stage
Worldworld ()
 
Driverdriver ()
 
Loglog () const
 
std::string_view name () const
 
flags_t annex () const
 
 Stage (World &world, std::string name)
 
 Stage (World &world, flags_t annex)
 
virtual ~Stage ()=default
 
virtual std::unique_ptr< Stagerecreate ()
 Creates a new instance; needed by a fixed-point PhaseMan.
 
virtual void apply (const App *)
 Invoked if your Stage has additional args.
 
virtual void apply (Stage &)
 Dito, but invoked by Stage::recreate.
 

Additional Inherited Members

template<class P, class... Args>
static void run (Args &&... args)
 Runs a single Phase.
 
static auto create (const Flags2Stages &stages, const Def *def)
 
template<class A, class P>
static void hook (Flags2Stages &stages)
 
- Protected Member Functions inherited from mim::ClosedMutPhase< Lam >
void start () override
 Actual entry.
 
Lamroot () const
 
- Protected Attributes inherited from mim::Phase
bool todo_ = false
 Set to true to indicate that you want to rerun all Phasees in current your fixed-point PhaseMan.
 
- Protected Attributes inherited from mim::Stage
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 11 of file add_mem.h.

Constructor & Destructor Documentation

◆ AddMem()

mim::plug::mem::phase::AddMem::AddMem ( World & world,
flags_t annex )
inline

Member Function Documentation

◆ visit()

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

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