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

The x86_isel Plugin More...

Classes

class  Gen
 Writes the closed rules among the annexes of this plugin as the C++ matchers and builders of mim::plug::x86::rules. More...

Enumerations

enum class  Want
 What a rule wants of the term a meta variable matches; a Param is bound but no operand. More...
<tt>x86_isel.addr</tt>
enum class  addr : flags_t
<tt>x86_isel.reg_imm</tt>
enum class  reg_imm : flags_t
<tt>x86_isel.reg_sh</tt>
enum class  reg_sh : flags_t
<tt>x86_isel.scaled</tt>
enum class  scaled : flags_t
<tt>x86_isel.zx</tt>
enum class  zx : flags_t
<tt>x86_isel.commutes</tt>
enum class  commutes : flags_t
<tt>x86_isel.alu</tt>
enum class  alu : flags_t
<tt>x86_isel.shift</tt>
enum class  shift : flags_t
<tt>x86_isel.neg</tt>
enum class  neg : flags_t
<tt>x86_isel.mul8</tt>
enum class  mul8 : flags_t
<tt>x86_isel.div</tt>
enum class  div : flags_t
<tt>x86_isel.udiv8</tt>
enum class  udiv8 : flags_t
<tt>x86_isel.sdiv8</tt>
enum class  sdiv8 : flags_t
<tt>x86_isel.rem8</tt>
enum class  rem8 : flags_t
<tt>x86_isel.rem16</tt>
enum class  rem16 : flags_t
<tt>x86_isel.rem32</tt>
enum class  rem32 : flags_t
<tt>x86_isel.rem64</tt>
enum class  rem64 : flags_t
<tt>x86_isel.trunc</tt>
enum class  trunc : flags_t
<tt>x86_isel.strunc</tt>
enum class  strunc : flags_t
<tt>x86_isel.zext</tt>
enum class  zext : flags_t
<tt>x86_isel.sext</tt>
enum class  sext : flags_t
<tt>x86_isel.cast_trunc</tt>
enum class  cast_trunc : flags_t
<tt>x86_isel.cast_zext</tt>
enum class  cast_zext : flags_t
<tt>x86_isel.icmp</tt>
enum class  icmp : flags_t
<tt>x86_isel.select</tt>
enum class  select : flags_t
<tt>x86_isel.select8</tt>
enum class  select8 : flags_t
<tt>x86_isel.float</tt>
enum class  float_ : flags_t {
  rm = 0x67ef0129418d1b00 ,
  sqrt_rm = 0x67ef0129418d1b01 ,
  arithmetic = 0x67ef0129418d1b02 ,
  cmp = 0x67ef0129418d1b03 ,
  swap = 0x67ef0129418d1b04 ,
  cmp_rm = 0x67ef0129418d1b05 ,
  swap_rm = 0x67ef0129418d1b06 ,
  comparisons = 0x67ef0129418d1b07 ,
  select = 0x67ef0129418d1b08 ,
  load = 0x67ef0129418d1b09 ,
  store = 0x67ef0129418d1b0a ,
  s2f = 0x67ef0129418d1b0b ,
  u2f = 0x67ef0129418d1b0c ,
  f2s = 0x67ef0129418d1b0d ,
  f2u = 0x67ef0129418d1b0e ,
  f2f = 0x67ef0129418d1b0f ,
  s2f_rm = 0x67ef0129418d1b10 ,
  f2s_rm = 0x67ef0129418d1b11 ,
  f2u_rm = 0x67ef0129418d1b12 ,
  f2f_rm = 0x67ef0129418d1b13 ,
  conversions = 0x67ef0129418d1b14
}
<tt>x86_isel.load</tt>
enum class  load : flags_t
<tt>x86_isel.store</tt>
enum class  store : flags_t
<tt>x86_isel.sext_rm</tt>
enum class  sext_rm : flags_t
<tt>x86_isel.rm</tt>
enum class  rm : flags_t
<tt>x86_isel.mr</tt>
enum class  mr : flags_t
<tt>x86_isel.scale</tt>
enum class  scale : flags_t
<tt>x86_isel.base</tt>
enum class  base : flags_t
<tt>x86_isel.abs</tt>
enum class  abs : flags_t
<tt>x86_isel.mov</tt>
enum class  mov : flags_t
<tt>x86_isel.movz</tt>
enum class  movz : flags_t
<tt>x86_isel.fmov</tt>
enum class  fmov : flags_t
<tt>x86_isel.lea</tt>
enum class  lea : flags_t
<tt>x86_isel.scale1</tt>
enum class  scale1 : flags_t
<tt>x86_isel.unscale</tt>
enum class  unscale : flags_t
<tt>x86_isel.zero</tt>
enum class  zero : flags_t
<tt>x86_isel.unzx</tt>
enum class  unzx : flags_t
<tt>x86_isel.formats</tt>
enum class  formats : flags_t
<tt>x86_isel.sizes</tt>
enum class  sizes : flags_t
<tt>x86_isel.arithmetic</tt>
enum class  arithmetic : flags_t
<tt>x86_isel.index_disp</tt>
enum class  index_disp : flags_t
<tt>x86_isel.base_index</tt>
enum class  base_index : flags_t
<tt>x86_isel.disp</tt>
enum class  disp : flags_t
<tt>x86_isel.index</tt>
enum class  index : flags_t
<tt>x86_isel.compares</tt>
enum class  compares : flags_t
<tt>x86_isel.division</tt>
enum class  division : flags_t
<tt>x86_isel.nonterminals</tt>
enum class  nonterminals : flags_t
<tt>x86_isel.addresses</tt>
enum class  addresses : flags_t
<tt>x86_isel.mem_ops</tt>
enum class  mem_ops : flags_t
<tt>x86_isel.gen</tt>
enum class  gen : flags_t

Functions

void register_normalizers (Normalizers &normalizers)

Variables

static constexpr plugin_t Plugin_Id = 0x67ef0129418d0000

<tt>x86_isel.imm</tt>

enum class  imm : flags_t
const Def * normalize_imm (const Def *type, const Def *, const Def *arg)

Detailed Description

Enumeration Type Documentation

◆ abs

enum class mim::plug::x86_isel::abs : flags_t
strong

Definition at line 281 of file autogen.h.

◆ addr

enum class mim::plug::x86_isel::addr : flags_t
strong

Definition at line 22 of file autogen.h.

◆ addresses

Definition at line 414 of file autogen.h.

◆ alu

enum class mim::plug::x86_isel::alu : flags_t
strong

Definition at line 64 of file autogen.h.

◆ arithmetic

Definition at line 358 of file autogen.h.

◆ base

enum class mim::plug::x86_isel::base : flags_t
strong

Definition at line 274 of file autogen.h.

◆ base_index

Definition at line 372 of file autogen.h.

◆ cast_trunc

Definition at line 169 of file autogen.h.

◆ cast_zext

Definition at line 176 of file autogen.h.

◆ commutes

Definition at line 57 of file autogen.h.

◆ compares

Definition at line 393 of file autogen.h.

◆ disp

enum class mim::plug::x86_isel::disp : flags_t
strong

Definition at line 379 of file autogen.h.

◆ div

enum class mim::plug::x86_isel::div : flags_t
strong

Definition at line 92 of file autogen.h.

◆ division

Definition at line 400 of file autogen.h.

◆ float_

enum class mim::plug::x86_isel::float_ : flags_t
strong
Enumerator
rm 
sqrt_rm 
arithmetic 
cmp 
swap 
cmp_rm 
swap_rm 
comparisons 
select 
load 
store 
s2f 
u2f 
f2s 
f2u 
f2f 
s2f_rm 
f2s_rm 
f2u_rm 
f2f_rm 
conversions 

Definition at line 204 of file autogen.h.

◆ fmov

enum class mim::plug::x86_isel::fmov : flags_t
strong

Definition at line 302 of file autogen.h.

◆ formats

Definition at line 344 of file autogen.h.

◆ gen

enum class mim::plug::x86_isel::gen : flags_t
strong

Definition at line 428 of file autogen.h.

◆ icmp

enum class mim::plug::x86_isel::icmp : flags_t
strong

Definition at line 183 of file autogen.h.

◆ imm

enum class mim::plug::x86_isel::imm : flags_t
strong

Definition at line 14 of file autogen.h.

◆ index

enum class mim::plug::x86_isel::index : flags_t
strong

Definition at line 386 of file autogen.h.

◆ index_disp

Definition at line 365 of file autogen.h.

◆ lea

enum class mim::plug::x86_isel::lea : flags_t
strong

Definition at line 309 of file autogen.h.

◆ load

enum class mim::plug::x86_isel::load : flags_t
strong

Definition at line 232 of file autogen.h.

◆ mem_ops

Definition at line 421 of file autogen.h.

◆ mov

enum class mim::plug::x86_isel::mov : flags_t
strong

Definition at line 288 of file autogen.h.

◆ movz

enum class mim::plug::x86_isel::movz : flags_t
strong

Definition at line 295 of file autogen.h.

◆ mr

enum class mim::plug::x86_isel::mr : flags_t
strong

Definition at line 260 of file autogen.h.

◆ mul8

enum class mim::plug::x86_isel::mul8 : flags_t
strong

Definition at line 85 of file autogen.h.

◆ neg

enum class mim::plug::x86_isel::neg : flags_t
strong

Definition at line 78 of file autogen.h.

◆ nonterminals

Definition at line 407 of file autogen.h.

◆ reg_imm

Definition at line 29 of file autogen.h.

◆ reg_sh

enum class mim::plug::x86_isel::reg_sh : flags_t
strong

Definition at line 36 of file autogen.h.

◆ rem16

enum class mim::plug::x86_isel::rem16 : flags_t
strong

Definition at line 120 of file autogen.h.

◆ rem32

enum class mim::plug::x86_isel::rem32 : flags_t
strong

Definition at line 127 of file autogen.h.

◆ rem64

enum class mim::plug::x86_isel::rem64 : flags_t
strong

Definition at line 134 of file autogen.h.

◆ rem8

enum class mim::plug::x86_isel::rem8 : flags_t
strong

Definition at line 113 of file autogen.h.

◆ rm

enum class mim::plug::x86_isel::rm : flags_t
strong

Definition at line 253 of file autogen.h.

◆ scale

enum class mim::plug::x86_isel::scale : flags_t
strong

Definition at line 267 of file autogen.h.

◆ scale1

enum class mim::plug::x86_isel::scale1 : flags_t
strong

Definition at line 316 of file autogen.h.

◆ scaled

enum class mim::plug::x86_isel::scaled : flags_t
strong

Definition at line 43 of file autogen.h.

◆ sdiv8

enum class mim::plug::x86_isel::sdiv8 : flags_t
strong

Definition at line 106 of file autogen.h.

◆ select

enum class mim::plug::x86_isel::select : flags_t
strong

Definition at line 190 of file autogen.h.

◆ select8

Definition at line 197 of file autogen.h.

◆ sext

enum class mim::plug::x86_isel::sext : flags_t
strong

Definition at line 162 of file autogen.h.

◆ sext_rm

Definition at line 246 of file autogen.h.

◆ shift

enum class mim::plug::x86_isel::shift : flags_t
strong

Definition at line 71 of file autogen.h.

◆ sizes

enum class mim::plug::x86_isel::sizes : flags_t
strong

Definition at line 351 of file autogen.h.

◆ store

enum class mim::plug::x86_isel::store : flags_t
strong

Definition at line 239 of file autogen.h.

◆ strunc

enum class mim::plug::x86_isel::strunc : flags_t
strong

Definition at line 148 of file autogen.h.

◆ trunc

enum class mim::plug::x86_isel::trunc : flags_t
strong

Definition at line 141 of file autogen.h.

◆ udiv8

enum class mim::plug::x86_isel::udiv8 : flags_t
strong

Definition at line 99 of file autogen.h.

◆ unscale

Definition at line 323 of file autogen.h.

◆ unzx

enum class mim::plug::x86_isel::unzx : flags_t
strong

Definition at line 337 of file autogen.h.

◆ Want

enum class mim::plug::mach::rules::Want : u8
strong

What a rule wants of the term a meta variable matches; a Param is bound but no operand.

A Lit is a Param that must be a literal. Reg is a general-purpose register, FReg a floating-point one, and Base/Index an address without/with an index. Addr is either address form, and Scaled an index with its scale. Zx is a general-purpose register that holds its value zero-extended, which mach.zext reads without an instruction. Imm is a literal that fits the backend's immediates, Sh a literal shift count, which the machine masks. RegImm and RegSh are a Reg, or an Imm and a Sh for a literal that is one.

Definition at line 28 of file rule_table.h.

◆ zero

enum class mim::plug::x86_isel::zero : flags_t
strong

Definition at line 330 of file autogen.h.

◆ zext

enum class mim::plug::x86_isel::zext : flags_t
strong

Definition at line 155 of file autogen.h.

◆ zx

enum class mim::plug::x86_isel::zx : flags_t
strong

Definition at line 50 of file autogen.h.

Function Documentation

◆ normalize_imm()

const Def * mim::plug::x86_isel::normalize_imm ( const Def * type,
const Def * ,
const Def * arg )

Definition at line 9 of file normalizers.cpp.

References mim::plug::x86::fits_imm(), mim::Lit::isa(), and normalize_imm().

Referenced by normalize_imm().

◆ register_normalizers()

void mim::plug::x86_isel::register_normalizers ( Normalizers & normalizers)

Variable Documentation

◆ Plugin_Id

plugin_t mim::plug::x86_isel::Plugin_Id = 0x67ef0129418d0000
staticconstexpr

Definition at line 10 of file autogen.h.