luaur-code-gen 0.1.0

Native (A64/X64) code generation for Luau (Rust).
Documentation
1
2
3
4
5
6
7
8
9
use crate::enums::ir_op_kind::IrOpKind;
use crate::records::ir_builder::IrBuilder;
use crate::records::ir_op::IrOp;

impl IrBuilder {
    pub fn vm_reg(&mut self, index: u8) -> IrOp {
        IrOp::ir_op_kind_u32(IrOpKind::VmReg, index as u32)
    }
}