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.h>

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

Public Member Functions

 NestPhase (World &world, std::string name, bool elide_empty)
 NestPhase (World &world, flags_t annex, 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 name, 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.

Private Member Functions

void visit (M *mut) final

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< Def >
void start () override
 Actual entry.
virtual void visit (Def *)=0
Defroot () const
Protected Attributes inherited from mim::Phase
bool todo_ = false
 Set to true to indicate that you want to rerun all Phasees in your current fixed-point PhaseMan.
Protected Attributes inherited from mim::Stage
std::string name_

Detailed Description

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

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

See also
NestPhase

Definition at line 320 of file phase.h.

Constructor & Destructor Documentation

◆ NestPhase() [1/2]

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

◆ NestPhase() [2/2]

template<class M = Def>
mim::NestPhase< M >::NestPhase ( World & world,
flags_t annex,
bool elide_empty )
inline

Member Function Documentation

◆ nest()

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

Definition at line 327 of file phase.h.

Referenced by 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 331 of file phase.h.

References M, nest(), and visit().


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