Lines Matching refs:RegClass
19 use regalloc2::RegClass;
577 debug_assert_eq!(vd_src.class(), RegClass::Vector); in riscv64_get_operands()
578 debug_assert_eq!(vd.to_reg().class(), RegClass::Vector); in riscv64_get_operands()
579 debug_assert_eq!(vs2.class(), RegClass::Vector); in riscv64_get_operands()
596 debug_assert_eq!(vd_src.class(), RegClass::Vector); in riscv64_get_operands()
597 debug_assert_eq!(vd.to_reg().class(), RegClass::Vector); in riscv64_get_operands()
598 debug_assert_eq!(vs2.class(), RegClass::Vector); in riscv64_get_operands()
622 debug_assert_eq!(vd.to_reg().class(), RegClass::Vector); in riscv64_get_operands()
623 debug_assert_eq!(vs2.class(), RegClass::Vector); in riscv64_get_operands()
643 debug_assert_eq!(vd.to_reg().class(), RegClass::Vector); in riscv64_get_operands()
644 debug_assert_eq!(vs2.class(), RegClass::Vector); in riscv64_get_operands()
679 debug_assert_eq!(vd.to_reg().class(), RegClass::Vector); in riscv64_get_operands()
718 fn canonical_type_for_rc(rc: RegClass) -> Type { in canonical_type_for_rc()
720 regalloc2::RegClass::Int => I64, in canonical_type_for_rc()
721 regalloc2::RegClass::Float => F64, in canonical_type_for_rc()
722 regalloc2::RegClass::Vector => I8X16, in canonical_type_for_rc()
817 fn rc_for_type(ty: Type) -> CodegenResult<(&'static [RegClass], &'static [Type])> { in rc_for_type() argument
819 I8 => Ok((&[RegClass::Int], &[I8])), in rc_for_type()
820 I16 => Ok((&[RegClass::Int], &[I16])), in rc_for_type()
821 I32 => Ok((&[RegClass::Int], &[I32])), in rc_for_type()
822 I64 => Ok((&[RegClass::Int], &[I64])), in rc_for_type()
823 F16 => Ok((&[RegClass::Float], &[F16])), in rc_for_type()
824 F32 => Ok((&[RegClass::Float], &[F32])), in rc_for_type()
825 F64 => Ok((&[RegClass::Float], &[F64])), in rc_for_type()
827 F128 | I128 => Ok((&[RegClass::Int, RegClass::Int], &[I64, I64])), in rc_for_type()
845 Ok((&[RegClass::Vector], ty)) in rc_for_type()
862 fn ref_type_regclass(_settings: &settings::Flags) -> RegClass { in ref_type_regclass() argument
863 RegClass::Int in ref_type_regclass()
879 RegClass::Int => match real.hw_enc() { in reg_name()
893 RegClass::Float => match real.hw_enc() { in reg_name()
901 RegClass::Vector => format!("v{}", real.hw_enc()), in reg_name()