20 size_t negate_cc(
size_t c)
const final {
return c ^ 1; }
static auto isa(const Def *def)
bool is_sched_cc(const App *app) const final
Is app the sched of the backend's cc?
size_t ret_reg(Class cls) const final
bool is_removable(const App *insn) const final
May insn go if nothing uses its results, e.g.
bool caller_saved(Class cls, size_t r) const final
bool is_mem_insn(const App *app) const final
Is app an instruction that takes the mem.M 0 it continues as its first argument?
bool reserved(Class cls, size_t r) const final
Is r never available to register allocation?
size_t num_arg_regs(Class cls) const final
size_t arg_reg(Class cls, size_t i) const final
The register of the i-th argument of class cls.
size_t num_regs(Class cls) const final
bool is_flags(const Def *def) const final
size_t negate_cc(size_t c) const final
The hardware encoding pairs each condition code with its negation in bit 0.
The machine facts of a native backend that the phases of mach need.
Class
The register classes; Stack values live in a spill slot and are unbounded.
Class cls(const Def *def) const
static const Def * sched_insn(const App *app)
virtual bool is_removable(const App *insn) const
May insn go if nothing uses its results, e.g.
virtual bool is_mem_insn(const App *app) const
Is app an instruction that takes the mem.M 0 it continues as its first argument?
Machine facts about the instructions of the arm plugin, shared by arm_isel.gen and the backend.
constexpr bool reserved(size_t r)
x16/x17/x18 are the scratch and platform registers, x29/x30 the frame pointer and link register.
constexpr std::array< size_t, 8 > Fpr_Arg_Regs
AAPCS64: floating-point arguments in d0 … d7, result in d0.
constexpr bool Caller_Saved[Num_Regs]
constexpr size_t Num_Regs
constexpr std::array< size_t, 8 > Arg_Regs
AAPCS64: arguments in x0 … x7, result in x0.
constexpr size_t Fpr_Scratch
d31 breaks a copy cycle, so allocation leaves it alone.
constexpr bool caller_saved_fpr(size_t r)
AAPCS64: d8–d15 are callee-saved.
static constexpr sub_t flags2sub(flags_t f)
Yields the sub part of the name as integer.