[Mlir-commits] [mlir] [mlir][arith] Overflow flags propagation in arith canonicalizations. (PR #91646)

Jakub Kuderski llvmlistbot at llvm.org
Sun May 12 12:37:26 PDT 2024


================
@@ -64,6 +64,13 @@ static IntegerAttr mulIntegerAttrs(PatternRewriter &builder, Value res,
   return applyToIntegerAttrs(builder, res, lhs, rhs, std::multiplies<APInt>());
 }
 
+static IntegerOverflowFlagsAttr
+mergeOverflowFlags(IntegerOverflowFlagsAttr val1,
----------------
kuhar wrote:

This could also use a comment of explanation, since the use in canon patterns is not the function declaration.

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


More information about the Mlir-commits mailing list