MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
gen.h
Go to the documentation of this file.
1#pragma once
2
3#include <mim/plug/mach/gen.h>
4
6
7/// Writes the closed rules among the annexes of this plugin as the C++ matchers and builders of mim::plug::x86::rules.
8class Gen : public mach::Gen {
9public:
11
12 u32 cost(const App* insn) const final;
13 std::optional<size_t> tied(const App* insn) const final;
14 std::optional<mach::rules::Want> classify(const Def* type) const final;
15};
16
17} // namespace mim::plug::x86_isel
Base class for all Defs.
Definition def.h:285
flags_t annex() const
Definition phase.h:64
World & world()
Definition phase.h:60
The World represents the whole program and manages creation of MimIR nodes (Defs).
Definition world.h:43
Writes the closed rules among the annexes of a backend's isel plugin as the C++ matchers and builders...
Definition gen.h:21
std::optional< mach::rules::Want > classify(const Def *type) const final
An x86.Addr i is a Base, an Index, or, for a dynamic i, either.
Definition gen.cpp:38
Gen(World &world, flags_t annex)
Definition gen.cpp:13
u32 cost(const App *insn) const final
Definition gen.cpp:33
std::optional< size_t > tied(const App *insn) const final
The operand whose register the result of the two-address instruction insn takes.
Definition gen.cpp:35
The x86_isel Plugin
Definition gen.h:5
u64 flags_t
Definition types.h:39
uint32_t u32
Definition types.h:27