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;

#[inline]
pub fn is_pseudo(cmd: IrCmd) -> bool {
    // Instructions that are used for internal needs and are not a part of final lowering
    match cmd {
        IrCmd::NOP | IrCmd::SUBSTITUTE | IrCmd::MARK_USED | IrCmd::MARK_DEAD => true,
        _ => false,
    }
}