Machine facts about the instructions of the x86 plugin, shared by x86_isel.gen and the backend. More...
Functions | |
| std::optional< size_t > | tied (flags_t base) |
The operand whose register the result of a two-address instruction base takes. | |
| bool | commutes (flags_t base) |
Does the two-address instruction base compute the same with its operands swapped? | |
| flags_t | op (const App *app) |
The operation f of the memory form x86.rm f, x86.rm1 f, or x86.mr f app. | |
| std::optional< size_t > | tied (const App *app) |
The operand whose register the result of the two-address instruction app takes. | |
| u32 | latency (flags_t base, nat_t s) |
The latency in cycles of the instruction base on s-bit operands, roughly as on recent cores (uops.info). | |
| u32 | cost (const App *app) |
The cost of the instruction app: its latency plus one, so of two equally fast covers the shorter wins. | |
Variables | |
| constexpr u32 | Load = 4 |
Machine facts about the instructions of the x86 plugin, shared by x86_isel.gen and the backend.
|
inline |
Does the two-address instruction base compute the same with its operands swapped?
Definition at line 33 of file insn.h.
References mim::Annex::Base, and commutes().
Referenced by commutes(), and mim::plug::x86::Target::untie().
The cost of the instruction app: its latency plus one, so of two equally fast covers the shorter wins.
An address is no instruction and costs nothing.
Definition at line 65 of file insn.h.
References mim::App::arg(), mim::App::args(), mim::App::axm(), mim::Annex::Base, cost(), mim::Axm::isa(), mim::Idx::isa_lit(), latency(), Load, op(), mim::Def::proj(), mim::plug::x86::reg_width(), and mim::Def::type().
Referenced by cost(), and mim::plug::x86_isel::Gen::cost().
The latency in cycles of the instruction base on s-bit operands, roughly as on recent cores (uops.info).
Definition at line 52 of file insn.h.
References mim::Annex::Base, latency(), Load, and mim::plug::x86::reg_width().
The operation f of the memory form x86.rm f, x86.rm1 f, or x86.mr f app.
Definition at line 40 of file insn.h.
References mim::App::arg(), mim::App::callee(), mim::Axm::get(), and op().
|
inline |
The operand whose register the result of the two-address instruction app takes.
x86.rm f (m, a, addr) overwrites a if f overwrites its first operand.
Definition at line 44 of file insn.h.
References mim::App::axm(), mim::Annex::Base, mim::Axm::base(), op(), and tied().
|
inline |
The operand whose register the result of a two-address instruction base takes.
Definition at line 20 of file insn.h.
References mim::Annex::Base, and tied().
Referenced by mim::plug::x86::Target::constraint(), tied(), tied(), and mim::plug::x86_isel::Gen::tied().