Skip to main content

luaur_code_gen/records/
value_restore_location.rs

1use crate::enums::ir_cmd::IrCmd;
2use crate::enums::ir_value_kind::IrValueKind;
3use crate::records::ir_op::IrOp;
4
5#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
6#[repr(C)]
7pub struct ValueRestoreLocation {
8    pub op: IrOp,
9    pub kind: IrValueKind,
10    pub conversion_cmd: IrCmd,
11    pub lazy: bool,
12}
13
14impl Default for ValueRestoreLocation {
15    fn default() -> Self {
16        Self {
17            op: IrOp { kind_and_index: 0 },
18            kind: IrValueKind::Unknown,
19            conversion_cmd: IrCmd::NOP,
20            lazy: false,
21        }
22    }
23}