1 use super::{InlineAsmArch, InlineAsmType};
2 use rustc_macros::HashStable_Generic;
5 Nvptx NvptxInlineAsmRegClass {
12 impl NvptxInlineAsmRegClass {
13 pub fn valid_modifiers(self, _arch: InlineAsmArch) -> &'static [char] {
17 pub fn suggest_class(self, _arch: InlineAsmArch, _ty: InlineAsmType) -> Option<Self> {
21 pub fn suggest_modifier(
25 ) -> Option<(char, &'static str)> {
29 pub fn default_modifier(self, _arch: InlineAsmArch) -> Option<(char, &'static str)> {
33 pub fn supported_types(
36 ) -> &'static [(InlineAsmType, Option<&'static str>)] {
38 Self::reg16 => types! { _: I8, I16; },
39 Self::reg32 => types! { _: I8, I16, I32, F32; },
40 Self::reg64 => types! { _: I8, I16, I32, F32, I64, F64; },
46 // Registers in PTX are declared in the assembly.
47 // There are no predefined registers that one can use.
48 Nvptx NvptxInlineAsmReg NvptxInlineAsmRegClass {}