[][src]Function cranelift::prelude::isa::registers::regs_overlap

pub fn regs_overlap(
    rc1: &'static RegClassData,
    reg1: u16,
    rc2: &'static RegClassData,
    reg2: u16
) -> 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.