[Mlir-commits] [mlir] [mlir][arith] Add overflow flags support to arith ops (PR #77211)

Tobias Gysi llvmlistbot at llvm.org
Sun Jan 7 23:23:28 PST 2024


================
@@ -26,6 +26,14 @@ convertArithFastMathFlagsToLLVM(arith::FastMathFlags arithFMF);
 LLVM::FastmathFlagsAttr
 convertArithFastMathAttrToLLVM(arith::FastMathFlagsAttr fmfAttr);
 
+// Map arithmetic overflow enum values to LLVMIR enum values.
+LLVM::IntegerOverflowFlags
+convertArithOveflowFlagsToLLVM(arith::IntegerOverflowFlags arithFlags);
+
+// Create an LLVM overflow attribute from a given arithmetic overflow attribute.
----------------
gysit wrote:

```suggestion
/// Creates an LLVM overflow attribute from a given arithmetic overflow attribute.
```
ultra nit:

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


More information about the Mlir-commits mailing list