Namespaces | |
| namespace | insn |
| Machine facts about the instructions of the x86 plugin, shared by x86_isel.gen and the backend. | |
| namespace | rules |
Classes | |
| class | Emit |
| Writes GNU assembler code (AT&T syntax) for the scheduled world; see AsmEmit for the output file. More... | |
| struct | Reg |
| A physical register of a register class. More... | |
| struct | Src |
| The source of a copy: a register or a literal; reg.cls is the class of either. More... | |
| class | Target |
| The machine facts of the x86-64 backend; the ABI is System V AMD64. More... | |
Enumerations | |
<tt>x86.Base</tt> | |
| enum class | Base : flags_t |
<tt>x86.Index</tt> | |
| enum class | Index : flags_t |
| enum class | index : flags_t |
<tt>x86.scale_1</tt> | |
| enum class | scale_1 : flags_t |
<tt>x86.scale_2</tt> | |
| enum class | scale_2 : flags_t |
<tt>x86.scale_4</tt> | |
| enum class | scale_4 : flags_t |
<tt>x86.scale_8</tt> | |
| enum class | scale_8 : flags_t |
<tt>x86.is_gpr</tt> | |
| enum class | is_gpr : flags_t |
<tt>x86.gpr</tt> | |
| enum class | gpr : flags_t |
<tt>x86.gpr16</tt> | |
| enum class | gpr16 : flags_t |
<tt>x86.logic</tt> | |
| enum class | logic : flags_t |
<tt>x86.rm</tt> | |
| enum class | rm : flags_t |
<tt>x86.rm1</tt> | |
| enum class | rm1 : flags_t |
<tt>x86.mr</tt> | |
| enum class | mr : flags_t |
<tt>x86.reg</tt> | |
| enum class | reg : flags_t { rax = 0x67ef000000001000 , rcx = 0x67ef000000001001 , rdx = 0x67ef000000001002 , rbx = 0x67ef000000001003 , rsp = 0x67ef000000001004 , rbp = 0x67ef000000001005 , rsi = 0x67ef000000001006 , rdi = 0x67ef000000001007 , r8 = 0x67ef000000001008 , r9 = 0x67ef000000001009 , r10 = 0x67ef00000000100a , r11 = 0x67ef00000000100b , r12 = 0x67ef00000000100c , r13 = 0x67ef00000000100d , r14 = 0x67ef00000000100e , r15 = 0x67ef00000000100f } |
<tt>x86.xmm</tt> | |
| enum class | xmm : flags_t { xmm0 = 0x67ef000000001100 , xmm1 = 0x67ef000000001101 , xmm2 = 0x67ef000000001102 , xmm3 = 0x67ef000000001103 , xmm4 = 0x67ef000000001104 , xmm5 = 0x67ef000000001105 , xmm6 = 0x67ef000000001106 , xmm7 = 0x67ef000000001107 , xmm8 = 0x67ef000000001108 , xmm9 = 0x67ef000000001109 , xmm10 = 0x67ef00000000110a , xmm11 = 0x67ef00000000110b , xmm12 = 0x67ef00000000110c , xmm13 = 0x67ef00000000110d , xmm14 = 0x67ef00000000110e , xmm15 = 0x67ef00000000110f } |
<tt>x86.mov</tt> | |
| enum class | mov : flags_t |
<tt>x86.load</tt> | |
| enum class | load : flags_t |
<tt>x86.store</tt> | |
| enum class | store : flags_t |
<tt>x86.add</tt> | |
| enum class | add : flags_t |
<tt>x86.sub</tt> | |
| enum class | sub : flags_t |
<tt>x86.and</tt> | |
| enum class | and_ : flags_t |
<tt>x86.or</tt> | |
| enum class | or_ : flags_t |
<tt>x86.xor</tt> | |
| enum class | xor_ : flags_t |
<tt>x86.imul</tt> | |
| enum class | imul : flags_t |
<tt>x86.add3</tt> | |
| enum class | add3 : flags_t |
<tt>x86.rsub</tt> | |
| enum class | rsub : flags_t |
<tt>x86.imul3</tt> | |
| enum class | imul3 : flags_t |
<tt>x86.div</tt> | |
| enum class | div : flags_t |
<tt>x86.idiv</tt> | |
| enum class | idiv : flags_t |
<tt>x86.shl</tt> | |
| enum class | shl : flags_t |
<tt>x86.shr</tt> | |
| enum class | shr : flags_t |
<tt>x86.sar</tt> | |
| enum class | sar : flags_t |
<tt>x86.zero</tt> | |
| enum class | zero : flags_t |
<tt>x86.cmp</tt> | |
| enum class | cmp : flags_t |
<tt>x86.test</tt> | |
| enum class | test : flags_t |
<tt>x86.cc</tt> | |
| enum class | cc : flags_t { o = 0x67ef000000002a00 , no = 0x67ef000000002a01 , b = 0x67ef000000002a02 , ae = 0x67ef000000002a03 , e = 0x67ef000000002a04 , ne = 0x67ef000000002a05 , be = 0x67ef000000002a06 , a = 0x67ef000000002a07 , s = 0x67ef000000002a08 , ns = 0x67ef000000002a09 , p = 0x67ef000000002a0a , np = 0x67ef000000002a0b , l = 0x67ef000000002a0c , ge = 0x67ef000000002a0d , le = 0x67ef000000002a0e , g = 0x67ef000000002a0f } |
<tt>x86.fmov</tt> | |
| enum class | fmov : flags_t |
<tt>x86.fload</tt> | |
| enum class | fload : flags_t |
<tt>x86.fstore</tt> | |
| enum class | fstore : flags_t |
<tt>x86.fadd</tt> | |
| enum class | fadd : flags_t |
<tt>x86.fsub</tt> | |
| enum class | fsub : flags_t |
<tt>x86.fmul</tt> | |
| enum class | fmul : flags_t |
<tt>x86.fdiv</tt> | |
| enum class | fdiv : flags_t |
<tt>x86.fsqrt</tt> | |
| enum class | fsqrt : flags_t |
<tt>x86.fabs</tt> | |
| enum class | fabs : flags_t |
<tt>x86.fcmp</tt> | |
| enum class | fcmp : flags_t { f = 0x67ef000000003500 , e = 0x67ef000000003501 , l = 0x67ef000000003502 , le = 0x67ef000000003503 , g = 0x67ef000000003504 , ge = 0x67ef000000003505 , ne = 0x67ef000000003506 , o = 0x67ef000000003507 , u = 0x67ef000000003508 , ue = 0x67ef000000003509 , ul = 0x67ef00000000350a , ule = 0x67ef00000000350b , ug = 0x67ef00000000350c , uge = 0x67ef00000000350d , une = 0x67ef00000000350e , t = 0x67ef00000000350f } |
<tt>x86.fsel</tt> | |
| enum class | fsel : flags_t |
<tt>x86.i2f</tt> | |
| enum class | i2f : flags_t |
<tt>x86.u2f</tt> | |
| enum class | u2f : flags_t |
<tt>x86.f2i</tt> | |
| enum class | f2i : flags_t |
<tt>x86.f2u</tt> | |
| enum class | f2u : flags_t |
<tt>x86.f2f</tt> | |
| enum class | f2f : flags_t |
<tt>x86.isel</tt> | |
| enum class | isel : flags_t |
<tt>x86.emit</tt> | |
| enum class | emit : flags_t |
Functions | |
| nat_t | reg_width (nat_t size) |
| Width of the register holding an Idx size. | |
| bool | fits_i32 (s64 x) |
| bool | fits_imm (std::optional< nat_t > size, nat_t val) |
Does the literal val fit a sign-extended 32-bit immediate, if it is an Idx size? | |
| bool | fits_imm (const Def *lit) |
Does the literal lit fit a sign-extended 32-bit immediate? | |
| constexpr bool | reserved (size_t r) |
| void | register_normalizers (Normalizers &normalizers) |
| template<class Reg> | |
| constexpr size_t | encoding (Reg r) |
The hardware encoding of the register r of a backend's module reg, whose subtags are in encoding order. | |
Variables | |
| constexpr size_t | Num_Regs = Annex::num<reg>() |
| constexpr size_t | Num_Xmm = Annex::num<xmm>() |
| constexpr std::array< size_t, 6 > | Arg_Regs |
| System V AMD64 ABI. | |
| constexpr std::array< bool, Num_Regs > | Caller_Saved = {1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0} |
| static constexpr plugin_t | Plugin_Id = 0x67ef000000000000 |
<tt>x86.Addr</tt> | |
| enum class | Addr : flags_t |
| enum class | addr : flags_t |
| const Def * | normalize_addr (const Def *type, const Def *, const Def *arg) |
<tt>x86.lea</tt> | |
| enum class | lea : flags_t |
| const Def * | normalize_lea (const Def *type, const Def *, const Def *a) |
<tt>x86.movzx</tt> | |
| enum class | movzx : flags_t |
| const Def * | normalize_movzx (const Def *type, const Def *, const Def *x) |
<tt>x86.movsx</tt> | |
| enum class | movsx : flags_t |
| const Def * | normalize_movsx (const Def *type, const Def *, const Def *x) |
<tt>x86.trunc</tt> | |
| enum class | trunc : flags_t |
| const Def * | normalize_trunc (const Def *type, const Def *, const Def *x) |
<tt>x86.cmovcc</tt> | |
| enum class | cmovcc : flags_t { o = 0x67ef000000002b00 , no = 0x67ef000000002b01 , b = 0x67ef000000002b02 , ae = 0x67ef000000002b03 , e = 0x67ef000000002b04 , ne = 0x67ef000000002b05 , be = 0x67ef000000002b06 , a = 0x67ef000000002b07 , s = 0x67ef000000002b08 , ns = 0x67ef000000002b09 , p = 0x67ef000000002b0a , np = 0x67ef000000002b0b , l = 0x67ef000000002b0c , ge = 0x67ef000000002b0d , le = 0x67ef000000002b0e , g = 0x67ef000000002b0f } |
| template<cmovcc id> | |
| const Def * | normalize_cmovcc (const Def *type, const Def *, const Def *arg) |
| struct mim::plug::x86::Src |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
constexpr |
The hardware encoding of the register r of a backend's module reg, whose subtags are in encoding order.
Definition at line 15 of file mach.h.
Referenced by mim::plug::x86::Target::constraint(), reserved(), and mim::plug::x86::Target::ret_reg().
|
inline |
Definition at line 16 of file imm.h.
References fits_i32().
Referenced by fits_i32(), fits_imm(), and normalize_addr().
|
inline |
Does the literal lit fit a sign-extended 32-bit immediate?
Definition at line 24 of file imm.h.
References fits_imm(), mim::Lit::isa(), and mim::Idx::isa_lit().
Does the literal val fit a sign-extended 32-bit immediate, if it is an Idx size?
Definition at line 19 of file imm.h.
References fits_i32(), fits_imm(), and reg_width().
Referenced by fits_imm(), fits_imm(), mim::plug::x86::Target::fits_imm(), and mim::plug::x86_isel::normalize_imm().
Definition at line 14 of file normalizers.cpp.
References b, fits_i32(), mim::Lit::isa(), normalize_addr(), and mim::Def::projs().
Referenced by normalize_addr().
| const Def * mim::plug::x86::normalize_cmovcc | ( | const Def * | type, |
| const Def * | , | ||
| const Def * | arg ) |
Definition at line 36 of file normalizers.cpp.
References b, mim::Annex::Base, mim::Axm::isa(), ne, normalize_cmovcc(), and mim::Def::projs().
Referenced by normalize_cmovcc().
Definition at line 24 of file normalizers.cpp.
References b, mim::Axm::isa(), mim::Lit::isa(), and normalize_lea().
Referenced by normalize_lea().
Definition at line 11 of file normalizers.cpp.
References mim::plug::mach::fold_ext(), and normalize_movsx().
Referenced by normalize_movsx().
Definition at line 10 of file normalizers.cpp.
References mim::plug::mach::fold_ext(), and normalize_movzx().
Referenced by normalize_movzx().
Definition at line 12 of file normalizers.cpp.
References mim::plug::mach::fold_ext(), and normalize_trunc().
Referenced by normalize_trunc().
Width of the register holding an Idx size.
Definition at line 14 of file imm.h.
References reg_width(), and mim::Idx::size2bitwidth().
Referenced by mim::plug::x86::insn::cost(), fits_imm(), mim::plug::x86::insn::latency(), and reg_width().
| void mim::plug::x86::register_normalizers | ( | Normalizers & | normalizers | ) |
References register_normalizers().
Referenced by MIM_PLUGIN_ENTRY(), and register_normalizers().
|
constexpr |
Definition at line 26 of file x86.h.
References encoding(), rbp, reserved(), and rsp.
Referenced by reserved(), and mim::plug::x86::Target::reserved().
|
constexpr |
System V AMD64 ABI.
Definition at line 20 of file x86.h.
Referenced by mim::plug::x86::Target::arg_reg(), and mim::plug::x86::Target::num_arg_regs().
|
constexpr |
Definition at line 25 of file x86.h.
Referenced by mim::plug::x86::Target::caller_saved().
|
constexpr |
Definition at line 15 of file x86.h.
Referenced by mim::plug::x86::Target::num_regs().
|
constexpr |
Definition at line 16 of file x86.h.
Referenced by mim::plug::x86::Target::num_regs().