mirror-llvm-project/mlir/include
William Moses d8d33abac0
[MLIR] Allow recovering from semi-affine sets in FlatLinearValueConst… (#212346)
…raints

The IntegerSet constructor of FlatLinearValueConstraints asserts when
flattening fails, which happens for semi-affine integer sets. Since the
failure is signalled from inside a constructor, callers have no way to
detect the unsupported case ahead of time and no way to work around it;
they simply crash.

Add an optional `bool *error` parameter to the constructor. When it is
non-null, hitting the unimplemented case sets `*error` to true and
returns instead of asserting, letting callers bail out gracefully.
`*error` is set to false on success. When the pointer is null the
previous assert behavior is retained, so existing callers are
unaffected.
2026-07-27 22:26:34 +00:00
..
mlir [MLIR] Allow recovering from semi-affine sets in FlatLinearValueConst… (#212346) 2026-07-27 22:26:34 +00:00
mlir-c [MLIR][Python] Support IsIsolatedFromAbove trait for python-defined operations (#211849) 2026-07-25 11:42:02 +08:00