MimIR 0.1
MimIR is my Intermediate Representation
|
Transitively visits all reachable, closed mutables in the World. More...
#include <mim/phase/phase.h>
Public Member Functions | |
ClosedMutPhase (World &world, std::string name, bool elide_empty) | |
bool | elide_empty () const |
void | start () override |
Actual entry. | |
![]() | |
Phase (World &world, std::string name) | |
virtual | ~Phase ()=default |
virtual void | reset () |
World & | world () |
std::string_view | name () const |
bool | todo () const |
virtual void | run () |
Entry point and generates some debug output; invokes Phase::start. | |
Protected Member Functions | |
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. | |
![]() | |
bool | todo_ = false |
Set to true to indicate that you want to rerun all Phasees in current your fixed-point PhaseMan. | |
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 206 of file phase.h.
References elide_empty(), mim::Phase::name(), mim::Phase::Phase(), and mim::Phase::world().
|
inline |
Definition at line 210 of file phase.h.
Referenced by ClosedMutPhase().
|
inlineprotected |
|
inlineoverridevirtual |
Actual entry.
Implements mim::Phase.
Reimplemented in mim::ll::Emitter.
Definition at line 212 of file phase.h.
References mim::Def::deps(), mim::unique_queue< Set >::empty(), mim::Def::local_muts(), M, mim::unique_queue< Set >::pop(), mim::unique_queue< Set >::push(), visit(), and mim::Phase::world().
|
protectedpure virtual |