use crate::enums::ir_const_kind::IrConstKind;
use crate::records::ir_const::IrConst;
use crate::records::ir_function::IrFunction;
use crate::records::ir_op::IrOp;
impl IrFunction {
pub fn uint_op(&self, op: IrOp) -> u32 {
let value: IrConst = self.const_op(op);
debug_assert!(value.kind == IrConstKind::Uint);
unsafe { value.value.value_uint }
}
}