Skip to main content

luaur_code_gen/records/
spill.rs

1use crate::records::register_a_64::RegisterA64;
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(C)]
5pub struct Spill {
6    pub inst: u32,
7    pub origin: RegisterA64,
8    pub slot: i8,
9}
10
11impl Default for Spill {
12    fn default() -> Self {
13        Self {
14            inst: 0,
15            origin: RegisterA64 { bits: 0 },
16            slot: 0,
17        }
18    }
19}
20
21#[allow(non_upper_case_globals)]
22impl Spill {
23    pub const inst: u32 = 0;
24    pub const slot: i8 = 0;
25}