MimIR
0.3-dev
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
buffer.cpp
Go to the documentation of this file.
1
#include "
mim/plug/buffer/buffer.h
"
2
3
#include <
mim/plugin.h
>
4
5
#include "
mim/plug/buffer/phase/lower_ptr.h
"
6
7
using namespace
mim
;
8
using namespace
mim::plug
;
9
10
namespace
mim::plug::buffer
{
11
void
reg_phases
(
Flags2Phases
& phases) {
Phase::hook<lower_ptr, LowerPtr>
(phases); }
12
}
// namespace mim::plug::buffer
13
14
extern
"C"
MIM_EXPORT
Plugin
mim_get_plugin
() {
15
return
{
"buffer"
,
MIM_VERSION
,
buffer::register_normalizers
,
buffer::reg_phases
};
16
}
buffer.h
mim::Phase::hook
static void hook(Flags2Phases &phases)
Definition
phase.h:70
MIM_EXPORT
#define MIM_EXPORT
Definition
config.h:19
lower_ptr.h
mim::plug::buffer
The buffer Plugin
Definition
buffer.h:7
mim::plug::buffer::register_normalizers
void register_normalizers(Normalizers &normalizers)
mim::plug::buffer::reg_phases
void reg_phases(Flags2Phases &phases)
Definition
buffer.cpp:11
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()
plugin.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
buffer
buffer.cpp
Generated by
1.16.1