MimIR
0.6-dev
MimIR is my Intermediate Representation
Toggle main menu visibility
Loading...
Searching...
No Matches
gen.cpp
Go to the documentation of this file.
1
#include "
mim/plug/arm_isel/gen.h
"
2
3
#include <
mim/plug/arm/autogen.h
>
4
#include <
mim/plug/arm/insn.h
>
5
#include <
mim/plug/mach/mach.h
>
6
7
#include "
mim/plug/arm_isel/arm_isel.h
"
8
9
namespace
mim::plug::arm_isel
{
10
11
Gen::Gen
(
World
&
world
,
flags_t
annex
)
12
:
mach
::
Gen
(
world
,
13
annex
,
14
"arm"
,
15
arm
::Plugin_Id,
16
"arm_isel"
,
17
Plugin_Id,
18
{
19
.zx =
Annex::base<zx>
(),
20
.lit =
Annex::base<mach::lit>
(),
21
.commutes =
Annex::base<commutes>
(),
22
.formats =
Annex::base<formats>
(),
23
.sizes =
Annex::base<sizes>
(),
24
}) {}
25
26
u32
Gen::cost
(
const
App
* insn)
const
{
return
arm::insn::cost
(insn); }
27
28
}
// namespace mim::plug::arm_isel
autogen.h
insn.h
gen.h
arm_isel.h
mim::App
Definition
lam.h:215
mim::Phase::annex
flags_t annex() const
Definition
phase.h:64
mim::Phase::world
World & world()
Definition
phase.h:60
mim::World
The World represents the whole program and manages creation of MimIR nodes (Defs).
Definition
world.h:43
mim::plug::arm_isel::Gen::Gen
Gen(World &world, flags_t annex)
Definition
gen.cpp:11
mim::plug::arm_isel::Gen::cost
u32 cost(const App *insn) const final
Definition
gen.cpp:26
mach.h
mim::plug::arm::insn::cost
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
mim::plug::arm_isel
The arm_isel Plugin
Definition
gen.h:5
mim::plug::arm
The ARM Plugin
Definition
arm.h:11
mim::plug::mach
The mach Plugin
Definition
asm.h:15
mim::flags_t
u64 flags_t
Definition
types.h:39
mim::u32
uint32_t u32
Definition
types.h:27
mim::Annex::base
static consteval flags_t base()
Definition
plugin.h:278
src
mim
plug
arm_isel
gen.cpp
Generated by
1.18.0