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
use crate::records::ir_lowering_x_64::IrLoweringX64;
use crate::records::ir_op::IrOp;

impl IrLoweringX64 {
    pub fn int64_op(&self, op: IrOp) -> i64 {
        unsafe {
            let self_mut = self as *const Self as *mut Self;
            (*(*self_mut).function).int64_op(op)
        }
    }
}