MimIR
0.3-dev
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
affine.cpp
Go to the documentation of this file.
1
#include "
mim/plug/affine/affine.h
"
2
3
#include <
mim/config.h
>
4
#include <
mim/phase.h
>
5
6
#include "
mim/plug/affine/phase/lower_for.h
"
7
#include "
mim/plug/affine/phase/lower_index.h
"
8
9
using namespace
mim
;
10
using namespace
mim::plug
;
11
12
void
reg_phases
(
Flags2Phases
& phases) {
13
Phase::hook<affine::lower_for, affine::phase::LowerFor>
(phases);
14
Phase::hook<affine::lower_index, affine::phase::LowerIndex>
(phases);
15
}
16
17
extern
"C"
MIM_EXPORT
Plugin
mim_get_plugin
() {
return
{
"affine"
,
MIM_VERSION
,
nullptr
,
reg_phases
}; }
reg_phases
void reg_phases(Flags2Phases &phases)
Definition
affine.cpp:12
affine.h
mim::Phase::hook
static void hook(Flags2Phases &phases)
Definition
phase.h:70
config.h
MIM_EXPORT
#define MIM_EXPORT
Definition
config.h:19
lower_for.h
lower_index.h
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
MIM_VERSION
#define MIM_VERSION
Definition
plugin.h:54
mim::Plugin
Basic info and registration function pointer to be returned from a specific plugin.
Definition
plugin.h:59
src
mim
plug
affine
affine.cpp
Generated by
1.16.1