luaur-code-gen 0.1.1

Native (A64/X64) code generation for Luau (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::records::ir_inst::IrInst;
use crate::records::ir_op::IrOp;

pub fn any_argument_match<F>(inst: &IrInst, mut func: F) -> bool
where
    F: FnMut(&IrOp) -> bool,
{
    if crate::functions::is_pseudo::is_pseudo(inst.cmd) {
        return false;
    }

    for op in &inst.ops {
        if func(op) {
            return true;
        }
    }
    false
}