MimIR
0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
demo.cpp
Go to the documentation of this file.
1
#include "
mim/plug/demo/demo.h
"
2
3
#include <
mim/plugin.h
>
4
5
#include <
mim/pass/pass.h
>
6
7
using namespace
mim
;
8
9
/// Registers Pass%es in the different optimization Phase%s as well as normalizers for the Axiom%s.
10
extern
"C"
MIM_EXPORT
Plugin
mim_get_plugin
() {
11
return
{
"demo"
, [](
Normalizers
& normalizers) {
plug::demo::register_normalizers
(normalizers); },
nullptr
,
nullptr
};
12
}
MIM_EXPORT
#define MIM_EXPORT
Definition
config.h:16
demo.h
mim::plug::demo::register_normalizers
void register_normalizers(Normalizers &normalizers)
mim
Definition
cfg.h:11
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
plugin.h
mim::Plugin
Basic info and registration function pointer to be returned from a specific plugin.
Definition
plugin.h:29
src
mim
plug
demo
demo.cpp
Generated by
1.12.0