MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
x86_isel.cpp
Go to the documentation of this file.
2
3#include <mim/plugin.h>
4
6
7using namespace mim;
8
10
11// clang-format off
12static constexpr PluginArg known_args[] = {
13 {"o=<file>, output=<file>", "Writes the C++ rules of `x86_isel.gen` to `<file>` instead of stdout."},
14};
15// clang-format on
16
18 plugin.register_normalizers = plug::x86_isel::register_normalizers;
19 plugin.register_phases = reg_phases;
20 plugin.args = known_args;
21 plugin.num_args = std::size(known_args);
22}
static void hook(Flags2Phases &phases)
Definition phase.h:53
void register_normalizers(Normalizers &normalizers)
Definition ast.h:16
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
One -X <plugin>:<arg> a Plugin understands; see Arguments.
Definition plugin.h:35
#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
static void reg_phases(Flags2Phases &phases)
Definition x86_isel.cpp:9
static constexpr PluginArg known_args[]
Definition x86_isel.cpp:12