Namespaces | |
| namespace | insn |
| Machine facts about the instructions of the arm plugin, shared by arm_isel.gen and the backend. | |
| namespace | rules |
Classes | |
| class | Emit |
| Writes GNU assembler code (AArch64 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 AArch64 backend; the ABI is AAPCS64. More... | |
Enumerations | |
<tt>arm.reg</tt> | |
| enum class | reg : flags_t { x0 = 0x933800000000000 , x1 = 0x933800000000001 , x2 = 0x933800000000002 , x3 = 0x933800000000003 , x4 = 0x933800000000004 , x5 = 0x933800000000005 , x6 = 0x933800000000006 , x7 = 0x933800000000007 , x8 = 0x933800000000008 , x9 = 0x933800000000009 , x10 = 0x93380000000000a , x11 = 0x93380000000000b , x12 = 0x93380000000000c , x13 = 0x93380000000000d , x14 = 0x93380000000000e , x15 = 0x93380000000000f , x16 = 0x933800000000010 , x17 = 0x933800000000011 , x18 = 0x933800000000012 , x19 = 0x933800000000013 , x20 = 0x933800000000014 , x21 = 0x933800000000015 , x22 = 0x933800000000016 , x23 = 0x933800000000017 , x24 = 0x933800000000018 , x25 = 0x933800000000019 , x26 = 0x93380000000001a , x27 = 0x93380000000001b , x28 = 0x93380000000001c , x29 = 0x93380000000001d , x30 = 0x93380000000001e } |
<tt>arm.fpr</tt> | |
| enum class | fpr : flags_t { d0 = 0x933800000000100 , d1 = 0x933800000000101 , d2 = 0x933800000000102 , d3 = 0x933800000000103 , d4 = 0x933800000000104 , d5 = 0x933800000000105 , d6 = 0x933800000000106 , d7 = 0x933800000000107 , d8 = 0x933800000000108 , d9 = 0x933800000000109 , d10 = 0x93380000000010a , d11 = 0x93380000000010b , d12 = 0x93380000000010c , d13 = 0x93380000000010d , d14 = 0x93380000000010e , d15 = 0x93380000000010f , d16 = 0x933800000000110 , d17 = 0x933800000000111 , d18 = 0x933800000000112 , d19 = 0x933800000000113 , d20 = 0x933800000000114 , d21 = 0x933800000000115 , d22 = 0x933800000000116 , d23 = 0x933800000000117 , d24 = 0x933800000000118 , d25 = 0x933800000000119 , d26 = 0x93380000000011a , d27 = 0x93380000000011b , d28 = 0x93380000000011c , d29 = 0x93380000000011d , d30 = 0x93380000000011e , d31 = 0x93380000000011f } |
<tt>arm.load</tt> | |
| enum class | load : flags_t |
<tt>arm.store</tt> | |
| enum class | store : flags_t |
<tt>arm.add</tt> | |
| enum class | add : flags_t |
<tt>arm.sub</tt> | |
| enum class | sub : flags_t |
<tt>arm.and</tt> | |
| enum class | and_ : flags_t |
<tt>arm.or</tt> | |
| enum class | or_ : flags_t |
<tt>arm.xor</tt> | |
| enum class | xor_ : flags_t |
<tt>arm.mul</tt> | |
| enum class | mul : flags_t |
<tt>arm.madd</tt> | |
| enum class | madd : flags_t |
<tt>arm.shl</tt> | |
| enum class | shl : flags_t |
<tt>arm.shr</tt> | |
| enum class | shr : flags_t |
<tt>arm.sar</tt> | |
| enum class | sar : flags_t |
<tt>arm.udiv</tt> | |
| enum class | udiv : flags_t |
<tt>arm.sdiv</tt> | |
| enum class | sdiv : flags_t |
<tt>arm.cmp</tt> | |
| enum class | cmp : flags_t |
<tt>arm.cc</tt> | |
| enum class | cc : flags_t { eq = 0x933800000001600 , ne = 0x933800000001601 , cs = 0x933800000001602 , cc = 0x933800000001603 , mi = 0x933800000001604 , pl = 0x933800000001605 , vs = 0x933800000001606 , vc = 0x933800000001607 , hi = 0x933800000001608 , ls = 0x933800000001609 , ge = 0x93380000000160a , lt = 0x93380000000160b , gt = 0x93380000000160c , le = 0x93380000000160d , al = 0x93380000000160e , nv = 0x93380000000160f } |
<tt>arm.fmov</tt> | |
| enum class | fmov : flags_t |
<tt>arm.fload</tt> | |
| enum class | fload : flags_t |
<tt>arm.fstore</tt> | |
| enum class | fstore : flags_t |
<tt>arm.fadd</tt> | |
| enum class | fadd : flags_t |
<tt>arm.fsub</tt> | |
| enum class | fsub : flags_t |
<tt>arm.fmul</tt> | |
| enum class | fmul : flags_t |
<tt>arm.fdiv</tt> | |
| enum class | fdiv : flags_t |
<tt>arm.fsqrt</tt> | |
| enum class | fsqrt : flags_t |
<tt>arm.fabs</tt> | |
| enum class | fabs : flags_t |
<tt>arm.fcmp</tt> | |
| enum class | fcmp : flags_t |
<tt>arm.i2f</tt> | |
| enum class | i2f : flags_t |
<tt>arm.u2f</tt> | |
| enum class | u2f : flags_t |
<tt>arm.f2i</tt> | |
| enum class | f2i : flags_t |
<tt>arm.f2u</tt> | |
| enum class | f2u : flags_t |
<tt>arm.f2f</tt> | |
| enum class | f2f : flags_t |
<tt>arm.isel</tt> | |
| enum class | isel : flags_t |
<tt>arm.emit</tt> | |
| enum class | emit : flags_t |
Functions | |
| constexpr bool | reserved (size_t r) |
| x16/x17/x18 are the scratch and platform registers, x29/x30 the frame pointer and link register. | |
| constexpr bool | caller_saved_fpr (size_t r) |
| AAPCS64: d8–d15 are callee-saved. | |
| template<class Sel> | |
| constexpr flags_t | cc_to (cc c) |
The instance of the select family Sel (csel or fcsel) that selects on c. | |
| 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_Fpr = Annex::num<fpr>() |
| constexpr std::array< size_t, 8 > | Arg_Regs |
| AAPCS64: arguments in x0 … x7, result in x0. | |
| constexpr size_t | Ret_Reg = encoding(reg::x0) |
| constexpr bool | Caller_Saved [Num_Regs] |
| constexpr std::array< size_t, 8 > | Fpr_Arg_Regs |
| AAPCS64: floating-point arguments in d0 … d7, result in d0. | |
| constexpr size_t | Ret_Fpr = encoding(fpr::d0) |
| constexpr size_t | Fpr_Scratch = encoding(fpr::d31) |
| d31 breaks a copy cycle, so allocation leaves it alone. | |
| static constexpr plugin_t | Plugin_Id = 0x933800000000000 |
<tt>arm.sext</tt> | |
| enum class | sext : flags_t |
| const Def * | normalize_sext (const Def *type, const Def *, const Def *x) |
<tt>arm.trunc</tt> | |
| enum class | trunc : flags_t |
| const Def * | normalize_trunc (const Def *type, const Def *, const Def *x) |
<tt>arm.zero</tt> | |
| enum class | zero : flags_t |
| const Def * | normalize_zero (const Def *type, const Def *, const Def *x) |
<tt>arm.csel</tt> | |
| enum class | csel : flags_t { eq = 0x933800000001400 , ne = 0x933800000001401 , cs = 0x933800000001402 , cc = 0x933800000001403 , mi = 0x933800000001404 , pl = 0x933800000001405 , vs = 0x933800000001406 , vc = 0x933800000001407 , hi = 0x933800000001408 , ls = 0x933800000001409 , ge = 0x93380000000140a , lt = 0x93380000000140b , gt = 0x93380000000140c , le = 0x93380000000140d , al = 0x93380000000140e , nv = 0x93380000000140f } |
| template<csel id> | |
| const Def * | normalize_csel (const Def *type, const Def *, const Def *arg) |
<tt>arm.fcsel</tt> | |
| enum class | fcsel : flags_t { eq = 0x933800000001500 , ne = 0x933800000001501 , cs = 0x933800000001502 , cc = 0x933800000001503 , mi = 0x933800000001504 , pl = 0x933800000001505 , vs = 0x933800000001506 , vc = 0x933800000001507 , hi = 0x933800000001508 , ls = 0x933800000001509 , ge = 0x93380000000150a , lt = 0x93380000000150b , gt = 0x93380000000150c , le = 0x93380000000150d , al = 0x93380000000150e , nv = 0x93380000000150f } |
| template<fcsel id> | |
| const Def * | normalize_fcsel (const Def *type, const Def *, const Def *arg) |
| struct mim::plug::arm::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 |
|
constexpr |
AAPCS64: d8–d15 are callee-saved.
Definition at line 48 of file arm.h.
References caller_saved_fpr(), d15, d8, and encoding().
Referenced by mim::plug::arm::Target::caller_saved(), and caller_saved_fpr().
The instance of the select family Sel (csel or fcsel) that selects on c.
Definition at line 52 of file arm.h.
References mim::Annex::Base, cc_to(), and mim::Annex::flags2sub().
Referenced by cc_to().
|
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 caller_saved_fpr(), and reserved().
| const Def * mim::plug::arm::normalize_csel | ( | const Def * | type, |
| const Def * | , | ||
| const Def * | arg ) |
Definition at line 34 of file normalizers.cpp.
References normalize_csel().
Referenced by normalize_csel().
| const Def * mim::plug::arm::normalize_fcsel | ( | const Def * | type, |
| const Def * | , | ||
| const Def * | arg ) |
Definition at line 39 of file normalizers.cpp.
References normalize_fcsel().
Referenced by normalize_fcsel().
Definition at line 30 of file normalizers.cpp.
References mim::plug::mach::fold_ext(), and normalize_sext().
Referenced by normalize_sext().
Definition at line 31 of file normalizers.cpp.
References mim::plug::mach::fold_ext(), and normalize_trunc().
Referenced by normalize_trunc().
Definition at line 29 of file normalizers.cpp.
References mim::plug::mach::fold_ext(), and normalize_zero().
Referenced by normalize_zero().
| void mim::plug::arm::register_normalizers | ( | Normalizers & | normalizers | ) |
References register_normalizers().
Referenced by MIM_PLUGIN_ENTRY(), and register_normalizers().
|
constexpr |
x16/x17/x18 are the scratch and platform registers, x29/x30 the frame pointer and link register.
Definition at line 34 of file arm.h.
References encoding(), reserved(), x16, x17, x18, x29, and x30.
Referenced by reserved(), and mim::plug::arm::Target::reserved().
|
constexpr |
AAPCS64: arguments in x0 … x7, result in x0.
Definition at line 20 of file arm.h.
Referenced by mim::plug::arm::Target::arg_reg(), and mim::plug::arm::Target::num_arg_regs().
|
constexpr |
Definition at line 26 of file arm.h.
Referenced by mim::plug::arm::Target::caller_saved().
|
constexpr |
AAPCS64: floating-point arguments in d0 … d7, result in d0.
Definition at line 40 of file arm.h.
Referenced by mim::plug::arm::Target::arg_reg(), and mim::plug::arm::Target::num_arg_regs().
d31 breaks a copy cycle, so allocation leaves it alone.
Definition at line 46 of file arm.h.
Referenced by mim::plug::arm::Target::reserved().
|
constexpr |
Definition at line 16 of file arm.h.
Referenced by mim::plug::arm::Target::num_regs().
|
constexpr |
Definition at line 15 of file arm.h.
Referenced by mim::plug::arm::Target::num_regs().
|
staticconstexpr |
Definition at line 44 of file arm.h.
Referenced by mim::plug::arm::Target::ret_reg().
Definition at line 25 of file arm.h.
Referenced by mim::plug::arm::Target::ret_reg().