luaur_code_gen/enums/kind_a_64.rs
1#[allow(non_camel_case_types)]
2#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
3#[repr(u8)]
4pub enum KindA64 {
5 none,
6 w, // 32-bit GPR
7 x, // 64-bit GPR
8 s, // 32-bit SIMD&FP scalar
9 d, // 64-bit SIMD&FP scalar
10 q, // 128-bit SIMD&FP vector
11}
12
13#[allow(non_upper_case_globals)]
14impl KindA64 {
15 pub const none: Self = Self::none;
16 pub const w: Self = Self::w;
17 pub const x: Self = Self::x;
18 pub const s: Self = Self::s;
19 pub const d: Self = Self::d;
20 pub const q: Self = Self::q;
21}