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

impl IrOp {
    #[inline]
    pub const fn ir_op_operator_ne(&self, rhs: IrOp) -> bool {
        self.kind_and_index != rhs.kind_and_index
    }
}

impl PartialEq<IrOp> for &IrOp {
    #[inline]
    fn eq(&self, other: &IrOp) -> bool {
        self.kind_and_index == other.kind_and_index
    }
}