22 auto id = axm->base();
32 std::erase_if(res.fixed, [&](
auto fixed) { return Lit::isa(res.ops[fixed.first]); });
33 if (res.tied &&
Lit::isa(res.ops[*res.tied])) res.tied.reset();
40 auto id = std::get<0>(
Axm::get(f))->base();
42 auto& w =
insn->world();
43 auto m =
insn->callee()->as<
App>()->arg();
44 auto [x, y] =
insn->arg()->projs<2>();
47 auto live = after.contains(a);
49 auto onto_b = !
Lit::isa(
b) &&
b != a && !after.contains(
b) && (live || (
b == phi && a != phi));
50 auto as = [&](
const Def* annex) {
static auto isa(const Def *def)
static std::tuple< const Axm *, u8, u8 > get(const Def *def)
Yields currying counter of def.
static std::optional< T > isa(const Def *def)
virtual Constraint constraint(const App *insn) const
The register constraint of insn; by default, it has none.
static const Def * unview(const Def *def)
The v of zext d v, otherwise def.
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?
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?
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.
mach::Constraint constraint(const App *insn) const final
The register constraint of insn; by default, it has none.
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.
bool commutes(flags_t base)
Does the two-address instruction base compute the same with its operands swapped?
std::optional< size_t > tied(flags_t base)
The operand whose register the result of a two-address instruction base takes.
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...
fe::View< const Def * > Defs
GIDSet< const Def * > DefSet
static constexpr flags_t Base