API reference
python:irx:irx.builder.lowering.BinaryOpVisitorMixin._guard_scalar_integer_divisor
method _guard_scalar_integer_divisor
_guard_scalar_integer_divisor(node: astx.BinaryOp, llvm_lhs: ir.Value, llvm_rhs: ir.Value, *, unsigned: bool) -> None
Source: packages/irx/src/irx/builder/lowering/binary_ops.py:322
Declared as: python:irx:irx.builder.lowering.binary_ops.BinaryOpVisitorMixin._guard_scalar_integer_divisor
Reject zero and unrepresentable signed integer division.
Parameters
-
node — Type: astx.BinaryOp
-
llvm_lhs — Type: ir.Value
-
llvm_rhs — Type: ir.Value
-
unsigned — Type: bool