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
use crate::enums::ir_cmd::IrCmd;
use crate::records::ir_builder::IrBuilder;
use crate::records::ir_op::IrOp;

impl IrBuilder {
    pub fn inst_ir_cmd(&mut self, cmd: IrCmd) -> IrOp {
        // C++ `inst(cmd, {})` — an empty operand list (not a single `undef`).
        self.inst_ir_cmd_initializer_list_ir_op(cmd, &[])
    }
}