MimIR 0.1
MimIR is my Intermediate Representation
|
Wraps a PassMan pipeline as a Phase. More...
#include <mim/phase.h>
Public Member Functions | |
const PassMan & | man () const |
Construction | |
PassManPhase (World &world, std::unique_ptr< PassMan > &&man) | |
PassManPhase (World &world, flags_t annex) | |
void | apply (const App *) final |
Invoked if your Stage has additional args. | |
void | apply (Stage &) final |
Dito, but invoked by Stage::recreate. | |
![]() | |
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. | |
Private Member Functions | |
void | start () final |
Actual entry. | |
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_ |
Definition at line 191 of file phase.h.
References man(), mim::Phase::Phase(), and mim::Stage::world().
Referenced by apply().
Definition at line 194 of file phase.h.
References mim::Stage::annex(), mim::Phase::Phase(), and mim::Stage::world().
|
finalvirtual |
Invoked if your Stage has additional args.
Reimplemented from mim::Stage.
Definition at line 164 of file phase.cpp.
References mim::Stage::annex(), mim::Stage::create(), mim::Stage::driver(), and mim::Stage::world().
|
finalvirtual |
Dito, but invoked by Stage::recreate.
Reimplemented from mim::Stage.
Definition at line 174 of file phase.cpp.
References PassManPhase().
|
inline |
Definition at line 201 of file phase.h.
Referenced by PassManPhase().
|
inlinefinalprivatevirtual |