|
MimIR 0.1
MimIR is my Intermediate Representation
|
Simple Stage that searches for a pattern and replaces it. More...
#include <mim/phase.h>
Public Member Functions | |
| Repl (World &world, flags_t annex) | |
| virtual const Def * | replace (const Def *def)=0 |
Public Member Functions inherited from mim::Stage | |
| 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. | |
| virtual void | apply (const App *) |
| Invoked if your Stage has additional args. | |
| virtual void | apply (Stage &) |
| Dito, but invoked by Stage::recreate. | |
Additional Inherited Members | |
| static auto | create (const Flags2Stages &stages, const Def *def) |
| template<class A, class P> | |
| static void | hook (Flags2Stages &stages) |
Protected Attributes inherited from mim::Stage | |
| std::string | name_ |
Simple Stage that searches for a pattern and replaces it.
Combine them in a ReplPhase.
Definition at line 114 of file phase.h.
References mim::Stage::annex(), mim::Stage::Stage(), and mim::Stage::world().
Referenced by mim::ReplMan::apply(), and mim::ReplMan::ReplMan().
Implemented in mim::ReplMan.