(opcode: i32)
| 69 | /// Check if instruction uses co_consts |
| 70 | #[must_use] |
| 71 | pub fn has_const(opcode: i32) -> bool { |
| 72 | matches!( |
| 73 | Self::try_from(opcode).map(|op| op.inner()), |
| 74 | Ok(AnyInstruction::Real(Instruction::LoadConst { .. })) |
| 75 | ) |
| 76 | } |
| 77 | |
| 78 | /// Check if instruction uses co_names |
| 79 | #[must_use] |