luaur-code-gen 0.1.0

Native (A64/X64) code generation for Luau (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::records::ir_op::IrOp;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(C)]
pub struct LoopInfo {
    pub step: IrOp,
    pub startpc: core::ffi::c_int,
}

impl Default for LoopInfo {
    fn default() -> Self {
        Self {
            step: IrOp { kind_and_index: 0 },
            startpc: 0,
        }
    }
}