1 use super::{InlineAsmArch, InlineAsmType};
2 use rustc_macros::HashStable_Generic;
3 use rustc_span::Symbol;
7 Hexagon HexagonInlineAsmRegClass {
12 impl HexagonInlineAsmRegClass {
13 pub fn valid_modifiers(self, _arch: super::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<Symbol>)] {
38 Self::reg => types! { _: I8, I16, I32, F32; },
44 Hexagon HexagonInlineAsmReg HexagonInlineAsmRegClass {
74 "r19 is used internally by LLVM and cannot be used as an operand for inline asm",
75 #error = ["r29", "sp"] =>
76 "the stack pointer cannot be used as an operand for inline asm",
77 #error = ["r30", "fr"] =>
78 "the frame register cannot be used as an operand for inline asm",
79 #error = ["r31", "lr"] =>
80 "the link register cannot be used as an operand for inline asm",
84 impl HexagonInlineAsmReg {
87 out: &mut dyn fmt::Write,
89 _modifier: Option<char>,
91 out.write_str(self.name())
94 pub fn overlapping_regs(self, mut _cb: impl FnMut(HexagonInlineAsmReg)) {}