MimIR 0.1
MimIR is my Intermediate Representation
|
Like a RWPhase but starts with a fixed-point loop of FPPhase::analyze beforehand. More...
#include <mim/phase/phase.h>
Public Member Functions | |
FPPhase (World &world, std::string_view name) | |
void | start () override |
Actual entry. | |
virtual bool | analyze ()=0 |
![]() | |
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) |
Like a RWPhase but starts with a fixed-point loop of FPPhase::analyze beforehand.
Inherit from this one to implement a classic data-flow analysis.
|
inline |
Definition at line 79 of file phase.h.
References mim::Phase::name(), mim::RWPhase::RWPhase(), and mim::RWPhase::world().
|
overridevirtual |
Actual entry.
Implements mim::Phase.
Definition at line 16 of file phase.cpp.
References analyze(), and mim::RWPhase::start().