21 size_t negate_cc(
size_t c)
const final {
return c ^ 1; }
static auto isa(const Def *def)
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_machine_insn(const App *app) const
Is app an instruction of this backend, other than mach.sched, that belongs on a mem....
bool caller_saved(Class cls, size_t r) const final
The XMM registers are all caller-saved.
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 is_machine_insn(const App *app) const final
An address is no instruction.
bool fits_imm(const Def *lit) const final
A literal that fits a sign-extended 32-bit immediate.
bool is_flags(const Def *def) const final
size_t ret_reg(Class cls) const final
size_t num_regs(Class cls) const final
bool is_sched_cc(const App *app) const final
Is app the sched of the backend's cc?
size_t arg_reg(Class cls, size_t i) const final
The register of the i-th argument of class cls.
const App * untie(const App *insn, const DefSet &after, const Def *phi) const final
Swaps a commutative operation whose other operand dies and turns such a sub into an rsub.
bool is_removable(const App *insn) const final
May insn go if nothing uses its results, e.g.
size_t negate_cc(size_t c) const final
The hardware encoding pairs each condition code with its negation in bit 0.
mach::Constraint constraint(const App *insn) const final
The register constraint of insn; by default, it has none.
size_t num_arg_regs(Class cls) const final
The XMM registers are their own argument registers.
bool reserved(Class cls, size_t r) const final
Is r never available to register allocation?
What an instruction on the chain prescribes about the registers of its operands; registers are hardwa...
Machine facts about the instructions of the x86 plugin, shared by x86_isel.gen and the backend.
constexpr std::array< bool, Num_Regs > Caller_Saved
constexpr size_t encoding(Reg r)
The hardware encoding of the register r of a backend's module reg, whose subtags are in encoding orde...
constexpr bool reserved(size_t r)
constexpr std::array< size_t, 6 > Arg_Regs
System V AMD64 ABI.
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?
constexpr size_t Num_Regs
GIDSet< const Def * > DefSet
static constexpr sub_t flags2sub(flags_t f)
Yields the sub part of the name as integer.