pub fn suggest_class(self, arch: InlineAsmArch, ty: InlineAsmType) -> Option<Self> {
        match self {
            Self::X86(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::X86),
            Self::Arm(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Arm),
            Self::AArch64(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::AArch64),
            Self::RiscV(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::RiscV),
            Self::Nvptx(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Nvptx),
            Self::PowerPC(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::PowerPC),
            Self::Hexagon(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Hexagon),
            Self::Mips(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Mips),
            Self::SpirV(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::SpirV),
            Self::Wasm(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Wasm),
            Self::Bpf(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Bpf),
            Self::Err => unreachable!("Use of InlineAsmRegClass::Err"),
        }
    }
/// Returns a suggested register class to use for this type. This is called
/// after type checking via `supported_types` fails to give a better error
/// message to the user.
Returns a suggested register class to use for this type. This is called
after type checking via `supported_types` fails to give a better error
message to the user.
Returns a suggested register class to use for this type . This is called after type checking via ` supported_types ` fails to give a better error message to the user .
pub fn suggest_class(self, arch: InlineAsmArch, ty: InlineAsmType) -> Option<Self> {
        match self {
            Self::X86(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::X86),
            Self::Arm(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Arm),
            Self::AArch64(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::AArch64),
            Self::RiscV(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::RiscV),
            Self::Nvptx(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Nvptx),
            Self::PowerPC(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::PowerPC),
            Self::Hexagon(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Hexagon),
            Self::Mips(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Mips),
            Self::SpirV(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::SpirV),
            Self::Wasm(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Wasm),
            Self::Bpf(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Bpf),
            Self::Err => unreachable!("Use of InlineAsmRegClass::Err"),
        }
    }
pub fn suggest_class ( self , arch : InlineAsmArch , ty : InlineAsmType ) -> Option < Self > { match self { Self :: X86 ( r ) => r . suggest_class ( arch , ty ) . map ( InlineAsmRegClass :: X86 ) , Self :: Arm ( r ) => r . suggest_class ( arch , ty ) . map ( InlineAsmRegClass :: Arm ) , Self :: AArch64 ( r ) => r . suggest_class ( arch , ty ) . map ( InlineAsmRegClass :: AArch64 ) , Self :: RiscV ( r ) => r . suggest_class ( arch , ty ) . map ( InlineAsmRegClass :: RiscV ) , Self :: Nvptx ( r ) => r . suggest_class ( arch , ty ) . map ( InlineAsmRegClass :: Nvptx ) , Self :: PowerPC ( r ) => r . suggest_class ( arch , ty ) . map ( InlineAsmRegClass :: PowerPC ) , Self :: Hexagon ( r ) => r . suggest_class ( arch , ty ) . map ( InlineAsmRegClass :: Hexagon ) , Self :: Mips ( r ) => r . suggest_class ( arch , ty ) . map ( InlineAsmRegClass :: Mips ) , Self :: SpirV ( r ) => r . suggest_class ( arch , ty ) . map ( InlineAsmRegClass :: SpirV ) , Self :: Wasm ( r ) => r . suggest_class ( arch , ty ) . map ( InlineAsmRegClass :: Wasm ) , Self :: Bpf ( r ) => r . suggest_class ( arch , ty ) . map ( InlineAsmRegClass :: Bpf ) , Self :: Err => unreachable ! ( " " ) , } }
Returns a suggested register class to use for this type.
Returns a suggested register class to use for this type .
self
arch
InlineAsmArch
ty
InlineAsmType
self
arch
InlineAsmArch
ty
InlineAsmType