[Mlir-commits] [mlir] [mlir][Interfaces] Track and infer no-overflow flags in integer ranges (PR #191777)
Hocky Yudhiono
llvmlistbot at llvm.org
Thu Apr 16 01:01:10 PDT 2026
================
@@ -27,6 +27,18 @@
using namespace mlir;
using namespace mlir::dataflow;
+static ConstantIntRanges makeStaticIndexConstantRange(int32_t indexBitwidth,
+ int64_t value) {
+ ConstantIntRanges range =
+ ConstantIntRanges::constant(APInt(indexBitwidth, value));
+ // For statically-known non-negative metadata constants (e.g. extents), we
+ // can safely carry both no-wrap guarantees.
+ if (range.smin().isNonNegative())
----------------
hockyy wrote:
I refactored it so it takes a signed unsigned descriptor field
https://github.com/llvm/llvm-project/pull/191777
More information about the Mlir-commits
mailing list