#include <memory>
#include <fe/assert.h>
#include <fe/cast.h>
#include "mim/def.h"
#include "mim/nest.h"
#include "mim/pass.h"
#include "mim/rewrite.h"
Go to the source code of this file.
◆ MIM_CONCAT
#define MIM_CONCAT |
( |
| a, |
|
|
| b ) |
Value:
#define MIM_CONCAT_INNER(a, b)
Definition at line 139 of file phase.h.
◆ MIM_CONCAT_INNER
#define MIM_CONCAT_INNER |
( |
| a, |
|
|
| b ) |
◆ MIM_REPL
#define MIM_REPL |
( |
| __stages, |
|
|
| __annex, |
|
|
| ... ) |
Value:
#define MIM_REPL_IMPL(__stages, __annex, __id,...)
Definition at line 141 of file phase.h.
Referenced by reg_stages().
◆ MIM_REPL_IMPL
#define MIM_REPL_IMPL |
( |
| __stages, |
|
|
| __annex, |
|
|
| __id, |
|
|
| ... ) |
Value:
\
const ::mim::Def*
replace(const ::mim::Def* def)
final __VA_ARGS__ \
}; \
::mim::Stage::hook<__annex, MIM_CONCAT(Repl_, __id)>(__stages)
Simple Stage that searches for a pattern and replaces it.
virtual const Def * replace(const Def *def)=0
Repl(World &world, flags_t annex)
The World represents the whole program and manages creation of MimIR nodes (Defs).
Definition at line 144 of file phase.h.