MimIR
0.6-dev
MimIR is my Intermediate Representation
Toggle main menu visibility
Loading...
Searching...
No Matches
arm_isel.cpp
Go to the documentation of this file.
1
#include "
mim/plug/arm_isel/arm_isel.h
"
2
3
#include <
mim/plugin.h
>
4
5
#include "
mim/plug/arm_isel/gen.h
"
6
7
using namespace
mim
;
8
9
static
void
reg_phases
(
Flags2Phases
& phases) {
Phase::hook<plug::arm_isel::gen, plug::arm_isel::Gen>
(phases); }
10
11
// clang-format off
12
static
constexpr
PluginArg
known_args
[] = {
13
{
"o=<file>, output=<file>"
,
"Writes the C++ rules of `arm_isel.gen` to `<file>` instead of stdout."
},
14
};
15
// clang-format on
16
17
MIM_PLUGIN_ENTRY
(arm_isel) {
18
plugin.register_phases =
reg_phases
;
19
plugin.args =
known_args
;
20
plugin.num_args = std::size(
known_args
);
21
}
gen.h
reg_phases
static void reg_phases(Flags2Phases &phases)
Definition
arm_isel.cpp:9
known_args
static constexpr PluginArg known_args[]
Definition
arm_isel.cpp:12
arm_isel.h
mim::Phase::hook
static void hook(Flags2Phases &phases)
Definition
phase.h:53
mim
Definition
ast.h:16
mim::Flags2Phases
ankerl::unordered_dense::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:31
mim::PluginArg
One -X <plugin>:<arg> a Plugin understands; see Arguments.
Definition
plugin.h:35
plugin.h
MIM_PLUGIN_ENTRY
#define MIM_PLUGIN_ENTRY(p)
Defines a Plugin's entry point; the body fills in the plugin handed to it, as in MIM_PLUGIN_ENTRY(dem...
Definition
plugin.h:198
src
mim
plug
arm_isel
arm_isel.cpp
Generated by
1.18.0