MimIR
0.1
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/plugin.h
>
4
5
#include <
mim/pass/pass.h
>
6
#include <
mim/pass/pipelinebuilder.h
>
7
8
#include "
mim/plug/regex/pass/lower_regex.h
"
9
10
using namespace
mim
;
11
using namespace
mim::plug
;
12
13
/// Registers Pass%es in the different optimization Phase%s as well as normalizers for the Axiom%s.
14
extern
"C"
MIM_EXPORT
Plugin
mim_get_plugin
() {
15
return
{
"regex"
, [](
Normalizers
& normalizers) {
regex::register_normalizers
(normalizers); },
16
[](
Passes
& passes) {
register_pass<regex::lower_regex, regex::LowerRegex>
(passes); },
nullptr
};
17
}
MIM_EXPORT
#define MIM_EXPORT
Definition
config.h:16
lower_regex.h
mim::plug::regex::register_normalizers
void register_normalizers(Normalizers &normalizers)
mim::plug
Definition
affine.h:7
mim
Definition
cfg.h:11
mim::Passes
absl::flat_hash_map< flags_t, std::function< void(World &, PipelineBuilder &, const Def *)> > Passes
axiom ↦ (pipeline part) × (axiom application) → () The function should inspect Application to const...
Definition
plugin.h:22
mim::register_pass
void register_pass(Passes &passes, CArgs &&... args)
Definition
pipelinebuilder.h:47
mim::mim_get_plugin
MIM_EXPORT mim::Plugin mim_get_plugin()
mim::Normalizers
absl::flat_hash_map< flags_t, NormalizeFn > Normalizers
Definition
plugin.h:19
pass.h
pipelinebuilder.h
plugin.h
regex.h
mim::Plugin
Basic info and registration function pointer to be returned from a specific plugin.
Definition
plugin.h:29
src
mim
plug
regex
regex.cpp
Generated by
1.12.0