MimIR
0.3-dev
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
regex.cpp
Go to the documentation of this file.
1
#include "
mim/plug/regex/regex.h
"
2
3
#include <
mim/phase.h
>
4
#include <
mim/plugin.h
>
5
6
#include "
mim/plug/regex/phase/lower_regex.h
"
7
8
using namespace
mim
;
9
using namespace
mim::plug
;
10
11
void
reg_phases
(
Flags2Phases
& phases) {
Phase::hook<regex::lower_regex, regex::LowerRegex>
(phases); }
12
13
extern
"C"
MIM_EXPORT
Plugin
mim_get_plugin
() {
14
return
{
"regex"
,
MIM_VERSION
,
regex::register_normalizers
,
reg_phases
};
15
}
reg_phases
void reg_phases(Flags2Phases &phases)
Definition
affine.cpp:12
mim::Phase::hook
static void hook(Flags2Phases &phases)
Definition
phase.h:70
MIM_EXPORT
#define MIM_EXPORT
Definition
config.h:19
lower_regex.h
mim::plug::regex::register_normalizers
void register_normalizers(Normalizers &normalizers)
mim::plug
Definition
lower_for.h:5
mim
Definition
ast.h:14
mim::Flags2Phases
absl::flat_hash_map< flags_t, std::function< std::unique_ptr< Phase >(World &)> > Flags2Phases
Maps an axiom of a Phase to a function that creates one.
Definition
plugin.h:25
mim::mim_get_plugin
mim::Plugin mim_get_plugin()
phase.h
plugin.h
MIM_VERSION
#define MIM_VERSION
Definition
plugin.h:54
reg_phases
void reg_phases(Flags2Phases &phases)
Definition
regex.cpp:11
regex.h
mim::Plugin
Basic info and registration function pointer to be returned from a specific plugin.
Definition
plugin.h:59
src
mim
plug
regex
regex.cpp
Generated by
1.16.1