MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
arm.h File Reference
#include <array>
#include <mim/plug/core/core.h>
#include <mim/plug/mach/mach.h>
#include <mim/plug/mem/mem.h>
#include "mim/plug/arm/autogen.h"
Include dependency graph for arm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mim
namespace  mim::plug
namespace  mim::plug::arm
 The ARM Plugin

Functions

constexpr bool mim::plug::arm::reserved (size_t r)
 x16/x17/x18 are the scratch and platform registers, x29/x30 the frame pointer and link register.
constexpr bool mim::plug::arm::caller_saved_fpr (size_t r)
 AAPCS64: d8–d15 are callee-saved.
template<class Sel>
constexpr flags_t mim::plug::arm::cc_to (cc c)
 The instance of the select family Sel (csel or fcsel) that selects on c.
template<class Reg>
constexpr size_t mim::plug::arm::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 mim::plug::arm::Num_Regs = Annex::num<reg>()
constexpr size_t mim::plug::arm::Num_Fpr = Annex::num<fpr>()
constexpr std::array< size_t, 8 > mim::plug::arm::Arg_Regs
 AAPCS64: arguments in x0 … x7, result in x0.
constexpr size_t mim::plug::arm::Ret_Reg = encoding(reg::x0)
constexpr bool mim::plug::arm::Caller_Saved [Num_Regs]
constexpr std::array< size_t, 8 > mim::plug::arm::Fpr_Arg_Regs
 AAPCS64: floating-point arguments in d0 … d7, result in d0.
constexpr size_t mim::plug::arm::Ret_Fpr = encoding(fpr::d0)
constexpr size_t mim::plug::arm::Fpr_Scratch = encoding(fpr::d31)
 d31 breaks a copy cycle, so allocation leaves it alone.