MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::plug::arm::insn Namespace Reference

Machine facts about the instructions of the arm plugin, shared by arm_isel.gen and the backend. More...

Functions

u32 latency (flags_t base)
 The latency in cycles of the instruction base, roughly as on recent cores.
u32 cost (const App *app)
 The cost of the instruction app: its latency plus one, so of two equally fast covers the shorter wins.

Detailed Description

Machine facts about the instructions of the arm plugin, shared by arm_isel.gen and the backend.

Function Documentation

◆ cost()

u32 mim::plug::arm::insn::cost ( const App * app)
inline

The cost of the instruction app: its latency plus one, so of two equally fast covers the shorter wins.

Definition at line 24 of file insn.h.

References mim::App::axm(), mim::Axm::base(), cost(), and latency().

Referenced by cost(), and mim::plug::arm_isel::Gen::cost().

◆ latency()

u32 mim::plug::arm::insn::latency ( flags_t base)
inline

The latency in cycles of the instruction base, roughly as on recent cores.

Definition at line 12 of file insn.h.

References mim::Annex::Base, and latency().

Referenced by cost(), and latency().