luaur-code-gen 0.1.3

Native (A64/X64) code generation for Luau (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
impl crate::records::remove_dead_store_state::RemoveDeadStoreState {
    pub fn has_remaining_uses(&mut self, inst_idx: u32) -> bool {
        let inst = unsafe { &*self.function }
            .instructions
            .get(inst_idx as usize);
        match inst {
            Some(inst) => crate::functions::any_argument_match::any_argument_match(inst, |op| {
                op.kind() == crate::enums::ir_op_kind::IrOpKind::Inst
                    && unsafe { &*self.remaining_uses }[op.index() as usize] != 0
            }),
            None => false,
        }
    }
}