1 use super::{InlineAsmArch, InlineAsmType}
;
2 use rustc_macros
::HashStable_Generic
;
5 SpirV SpirVInlineAsmRegClass
{
10 impl SpirVInlineAsmRegClass
{
11 pub fn valid_modifiers(self, _arch
: super::InlineAsmArch
) -> &'
static [char] {
15 pub fn suggest_class(self, _arch
: InlineAsmArch
, _ty
: InlineAsmType
) -> Option
<Self> {
19 pub fn suggest_modifier(
23 ) -> Option
<(char, &'
static str)> {
27 pub fn default_modifier(self, _arch
: InlineAsmArch
) -> Option
<(char, &'
static str)> {
31 pub fn supported_types(
34 ) -> &'
static [(InlineAsmType
, Option
<&'
static str>)] {
37 types
! { _: I8, I16, I32, I64, F32, F64; }
44 // SPIR-V is SSA-based, it does not have registers.
45 SpirV SpirVInlineAsmReg SpirVInlineAsmRegClass {}