Utils
utils
¶
const_evaluate_operand_attribute(operand: SSAValue) -> IntegerAttr | None
¶
Try to constant evaluate an SSA value, returning None on failure.
Source code in xdsl/transforms/canonicalization_patterns/utils.py
const_evaluate_operand(operand: SSAValue) -> int | None
¶
Try to constant evaluate an SSA value, returning None on failure.