MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::Repl Class Referenceabstract

Simple Stage that searches for a pattern and replaces it. More...

#include <mim/phase.h>

Inheritance diagram for mim::Repl:
[legend]

Public Member Functions

 Repl (World &world, flags_t annex)
 
virtual const Defreplace (const Def *def)=0
 
- Public Member Functions inherited from mim::Stage
Worldworld ()
 
Driverdriver ()
 
Loglog () 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< Stagerecreate ()
 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_
 

Detailed Description

Simple Stage that searches for a pattern and replaces it.

Combine them in a ReplPhase.

Definition at line 112 of file phase.h.

Constructor & Destructor Documentation

◆ Repl()

mim::Repl::Repl ( World & world,
flags_t annex )
inline

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().

Member Function Documentation

◆ replace()

virtual const Def * mim::Repl::replace ( const Def * def)
pure virtual

Implemented in mim::ReplMan.


The documentation for this class was generated from the following file: