[][src]Function cranelift_codegen::isa::registers::regs_overlap

pub fn regs_overlap(
    rc1: RegClass,
    reg1: RegUnit,
    rc2: RegClass,
    reg2: RegUnit
) -> bool

Test of two registers overlap.

A register is identified as a (RegClass, RegUnit) pair. The register class is needed to determine the width (in regunits) of the register.