MimIR
0.2-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/pass.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_stages
(
Flags2Stages
& stages) {
13
Stage::hook<affine::lower_for_phase, affine::phase::LowerFor>
(stages);
14
Stage::hook<affine::lower_index_phase, affine::phase::LowerIndex>
(stages);
15
}
16
17
extern
"C"
MIM_EXPORT
Plugin
mim_get_plugin
() {
return
{
"affine"
,
MIM_VERSION
,
nullptr
,
reg_stages
}; }
reg_stages
void reg_stages(Flags2Stages &stages)
Definition
affine.cpp:12
affine.h
mim::Stage::hook
static void hook(Flags2Stages &stages)
Definition
pass.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::Flags2Stages
absl::flat_hash_map< flags_t, std::function< std::unique_ptr< Stage >(World &)> > Flags2Stages
Maps an an axiom of a Stage to a function that creates one.
Definition
plugin.h:25
mim::mim_get_plugin
mim::Plugin mim_get_plugin()
pass.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