MimIR 0.1
MimIR is my Intermediate Representation
|
Visits the current Phase::world and constructs a new RWPhase::world along the way. More...
#include <mim/phase/phase.h>
Public Member Functions | |
RWPhase (World &world, std::string_view name) | |
World & | world () |
void | start () override |
Actual entry. | |
![]() | |
Phase (World &world, std::string_view name, bool dirty) | |
virtual | ~Phase ()=default |
World & | world () |
std::string_view | name () const |
bool | is_dirty () const |
virtual void | run () |
Entry point and generates some debug output; invokes Phase::start. | |
![]() | |
Rewriter (World &world) | |
World & | world () |
const Def * | map (const Def *old_def, const Def *new_def) |
Map old_def to new_def and returns new_def ;. | |
virtual const Def * | rewrite (const Def *) |
virtual const Def * | rewrite_imm (const Def *) |
virtual const Def * | rewrite_mut (Def *) |
Additional Inherited Members | |
template<class P, class... Args> | |
static void | run (Args &&... args) |
Runs a single Phase. | |
![]() | |
void | set_name (std::string name) |
Visits the current Phase::world and constructs a new RWPhase::world along the way.
It recursively rewrites all World::externals().
|
inline |
Definition at line 58 of file phase.h.
References mim::Phase::name(), mim::Phase::Phase(), mim::Rewriter::Rewriter(), and world().
Referenced by mim::FPPhase::FPPhase(), and mim::plug::matrix::LowerMatrixLowLevel::LowerMatrixLowLevel().
|
overridevirtual |
Actual entry.
Implements mim::Phase.
Definition at line 11 of file phase.cpp.
References mim::Rewriter::rewrite(), and world().
Referenced by mim::FPPhase::start().
|
inline |
Definition at line 62 of file phase.h.
References mim::Phase::world().
Referenced by mim::FPPhase::FPPhase(), mim::plug::matrix::LowerMatrixLowLevel::LowerMatrixLowLevel(), mim::plug::matrix::LowerMatrixLowLevel::rewrite_imm(), RWPhase(), and start().