1 use super::{InlineAsmArch, InlineAsmType};
2 use rustc_macros::HashStable_Generic;
3 use rustc_span::Symbol;
6 Wasm WasmInlineAsmRegClass {
11 impl WasmInlineAsmRegClass {
12 pub fn valid_modifiers(self, _arch: super::InlineAsmArch) -> &'static [char] {
16 pub fn suggest_class(self, _arch: InlineAsmArch, _ty: InlineAsmType) -> Option<Self> {
20 pub fn suggest_modifier(
24 ) -> Option<(char, &'static str)> {
28 pub fn default_modifier(self, _arch: InlineAsmArch) -> Option<(char, &'static str)> {
32 pub fn supported_types(
35 ) -> &'static [(InlineAsmType, Option<Symbol>)] {
38 types! { _: I8, I16, I32, I64, F32, F64; }
45 // WebAssembly doesn't have registers.
46 Wasm WasmInlineAsmReg WasmInlineAsmRegClass {}