MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
gen.cpp
Go to the documentation of this file.
2
4#include <mim/plug/arm/insn.h>
6
8
9namespace mim::plug::arm_isel {
10
12 : mach::Gen(world,
13 annex,
14 "arm",
15 arm::Plugin_Id,
16 "arm_isel",
17 Plugin_Id,
18 {
19 .zx = Annex::base<zx>(),
21 .commutes = Annex::base<commutes>(),
22 .formats = Annex::base<formats>(),
23 .sizes = Annex::base<sizes>(),
24 }) {}
25
26u32 Gen::cost(const App* insn) const { return arm::insn::cost(insn); }
27
28} // namespace mim::plug::arm_isel
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
Gen(World &world, flags_t annex)
Definition gen.cpp:11
u32 cost(const App *insn) const final
Definition gen.cpp:26
u32 cost(const App *app)
The cost of the instruction app: its latency plus one, so of two equally fast covers the shorter wins...
Definition insn.h:24
The arm_isel Plugin
Definition gen.h:5
The ARM Plugin
Definition arm.h:11
The mach Plugin
Definition asm.h:15
u64 flags_t
Definition types.h:39
uint32_t u32
Definition types.h:27
static consteval flags_t base()
Definition plugin.h:278