Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
thorin::plug::mem::AddMem Class Reference

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

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

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

Public Member Functions

 AddMem (World &world)
 
void visit (const Scope &) override
 
- Public Member Functions inherited from thorin::ScopePhase
 ScopePhase (World &world, std::string_view name, bool elide_empty)
 
void start () override
 Actual entry.
 
- Public Member Functions inherited from thorin::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 thorin::Phase
template<class P , class... Args>
static void run (Args &&... args)
 Runs a single Phase.
 
- Protected Member Functions inherited from thorin::ScopePhase
const Scopescope () const
 
- Protected Attributes inherited from thorin::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()

thorin::plug::mem::AddMem::AddMem ( World world)
inline

Definition at line 13 of file add_mem.h.

References thorin::Phase::dirty_.

Member Function Documentation

◆ visit()

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

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