MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::NestPhase< M > Class Template Referenceabstract

Like ClosedMutPhase but computes a Nest for each NestPhase::visit. More...

#include <mim/phase/phase.h>

Inheritance diagram for mim::NestPhase< M >:
[legend]

Public Member Functions

 NestPhase (World &world, std::string_view name, bool dirty, bool elide_empty)
 
const Nestnest () const
 
virtual void visit (const Nest &)=0
 
- Public Member Functions inherited from mim::ClosedMutPhase< Def >
 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.
 

Private Member Functions

void visit (M *mut) final
 

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< Def >
virtual void visit (Def *)=0
 
Defroot () const
 
- Protected Member Functions inherited from mim::Phase
void set_name (std::string name)
 

Detailed Description

template<class M = Def>
class mim::NestPhase< M >

Like ClosedMutPhase but computes a Nest for each NestPhase::visit.

Definition at line 198 of file phase.h.

Constructor & Destructor Documentation

◆ NestPhase()

template<class M = Def>
mim::NestPhase< M >::NestPhase ( World & world,
std::string_view name,
bool dirty,
bool elide_empty )
inline

Definition at line 200 of file phase.h.

Member Function Documentation

◆ nest()

template<class M = Def>
const Nest & mim::NestPhase< M >::nest ( ) const
inline

Definition at line 203 of file phase.h.

Referenced by mim::NestPhase< M >::visit().

◆ visit() [1/2]

template<class M = Def>
virtual void mim::NestPhase< M >::visit ( const Nest & )
pure virtual

◆ visit() [2/2]

template<class M = Def>
void mim::NestPhase< M >::visit ( M * mut)
inlinefinalprivate

Definition at line 207 of file phase.h.

References mim::NestPhase< M >::nest(), and mim::NestPhase< M >::visit().


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