MimIR 0.1
MimIR is my Intermediate Representation
|
Transitively visits all reachable, closed mutables in the World. More...
#include <mim/phase.h>
Public Member Functions | |
ClosedMutPhase (World &world, std::string name, bool elide_empty) | |
ClosedMutPhase (World &world, flags_t annex, bool elide_empty) | |
bool | elide_empty () const |
![]() | |
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. | |
![]() | |
World & | world () |
Driver & | driver () |
Log & | log () 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< Stage > | recreate () |
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. | |
Protected Member Functions | |
void | start () override |
Actual entry. | |
virtual void | visit (M *)=0 |
M * | root () const |
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) |
![]() | |
bool | todo_ = false |
Set to true to indicate that you want to rerun all Phasees in current your fixed-point PhaseMan. | |
![]() | |
std::string | name_ |
Transitively visits all reachable, closed mutables in the World.
elide_empty
whether you want to visit trivial mutables without body.M
.
|
inline |
Definition at line 243 of file phase.h.
References elide_empty(), mim::Stage::name(), mim::Phase::Phase(), and mim::Stage::world().
|
inline |
Definition at line 246 of file phase.h.
References mim::Stage::annex(), elide_empty(), mim::Phase::Phase(), and mim::Stage::world().
|
inline |
Definition at line 250 of file phase.h.
Referenced by ClosedMutPhase(), ClosedMutPhase(), and start().
|
inlineprotected |
|
inlineoverrideprotectedvirtual |
Actual entry.
Implements mim::Phase.
Reimplemented in mim::ll::Emitter.
Definition at line 253 of file phase.h.
References elide_empty(), M, visit(), and mim::Stage::world().
|
protectedpure virtual |