Skip to main content

luaur_code_gen/functions/
is_pseudo.rs

1use crate::enums::ir_cmd::IrCmd;
2
3#[inline]
4pub fn is_pseudo(cmd: IrCmd) -> bool {
5    // Instructions that are used for internal needs and are not a part of final lowering
6    match cmd {
7        IrCmd::NOP | IrCmd::SUBSTITUTE | IrCmd::MARK_USED | IrCmd::MARK_DEAD => true,
8        _ => false,
9    }
10}