[Mlir-commits] [mlir] [mlir][arith] Add ValueBoundsOpInterface external models for the arith integer CielDiv, RemSI, RemUI, MaxUI, MinUI. (PR #204966)
Max Graey
llvmlistbot at llvm.org
Sun Jun 21 03:16:41 PDT 2026
================
@@ -17,6 +17,30 @@ namespace mlir {
namespace arith {
namespace {
+static bool isProvablyNonNegative(Value value, ValueBoundsConstraintSet &cstr) {
+ return cstr.populateAndCompare(
+ /*lhs=*/{value}, ValueBoundsConstraintSet::ComparisonOperator::GE,
+ /*rhs=*/{OpFoldResult(Builder(value.getContext()).getIndexAttr(0))});
----------------
MaxGraey wrote:
And same for the rest
https://github.com/llvm/llvm-project/pull/204966
More information about the Mlir-commits
mailing list