MimIR 0.1
MimIR is my Intermediate Representation
|
Organizes several Phases in a a pipeline. More...
#include <mim/phase/phase.h>
Public Member Functions | |
PhaseMan (World &, bool fixed_point=false) | |
bool | fixed_point () const |
void | start () override |
Actual entry. | |
phases | |
const auto & | phases () const |
template<class P, class... Args> | |
auto | add (Args &&... args) |
Add a Phase. | |
void | add (std::unique_ptr< Phase > &&phase) |
![]() | |
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. | |
Static Public Member Functions | |
template<class A, class P, class... Args> | |
static void | hook (Flags2Phases &phases, Args &&... args) |
template<class P, class... Args> | |
static void | run (Args &&... args) |
Runs a single Phase. | |
Additional Inherited Members | |
![]() | |
bool | todo_ = false |
Set to true to indicate that you want to rerun all Phasees in current your fixed-point PhaseMan. | |
Organizes several Phases in a a pipeline.
If fixed_point
is true
, run PhaseMan until all Phases' Phase::todo_ flags yield false
.
mim::PhaseMan::PhaseMan | ( | World & | world, |
bool | fixed_point = false ) |
Definition at line 36 of file phase.cpp.
References fixed_point(), mim::Phase::Phase(), and mim::Phase::world().
Referenced by hook().
|
inline |
|
inline |
|
inline |
Definition at line 164 of file phase.h.
Referenced by PhaseMan(), and start().
|
inlinestatic |
Definition at line 190 of file phase.h.
References add(), mim::assert_emplace(), mim::Annex::Base, PhaseMan(), and phases().
Referenced by reg_stages().
|
inline |
|
overridevirtual |
Actual entry.
Implements mim::Phase.
Definition at line 40 of file phase.cpp.
References fixed_point(), phases(), mim::Phase::reset(), and mim::Phase::todo_.