luaur-code-gen 0.1.0

Native (A64/X64) code generation for Luau (Rust).
Documentation
1
2
3
4
5
6
7
use crate::functions::get_op_ir_data::get_op_mut;

/// C++ `OP_A(inst)` — the instruction's first operand.
#[inline]
pub fn op_a(inst: &mut crate::records::ir_inst::IrInst) -> crate::records::ir_op::IrOp {
    *get_op_mut(inst, 0)
}