[Mlir-commits] [mlir] [mlir][Interfaces] Track and infer no-overflow flags in integer ranges (PR #191777)

Mehdi Amini llvmlistbot at llvm.org
Mon Apr 13 04:42:26 PDT 2026


================
@@ -39,12 +38,7 @@ static constexpr unsigned indexMaxWidth = 64;
 
 enum class CmpMode : uint32_t { Both, Signed, Unsigned };
 
-enum class OverflowFlags : uint32_t {
-  None = 0,
-  Nsw = 1,
-  Nuw = 2,
-  LLVM_MARK_AS_BITMASK_ENUM(Nuw)
-};
+using OverflowFlags = mlir::OverflowFlags;
----------------
joker-eph wrote:

Do we still need this line right now? In which condition can't the code just directly get the symbol from the parent namespace?

https://github.com/llvm/llvm-project/pull/191777


More information about the Mlir-commits mailing list