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

Tobias Gysi llvmlistbot at llvm.org
Mon Jan 8 23:24:35 PST 2024


================
@@ -137,6 +137,19 @@ class Arith_CompareOpOfAnyRank<string mnemonic, list<Trait> traits = []> :
   let results = (outs BoolLikeOfAnyRank:$result);
 }
 
+class Arith_IntBinaryOpWithOverflowFlags<string mnemonic, list<Trait> traits = []> :
+    Arith_BinaryOp<mnemonic, traits #
+      [Pure, DeclareOpInterfaceMethods<InferIntRangeInterface>,
+      DeclareOpInterfaceMethods<ArithIntegerOverflowFlagsInterface>]>,
----------------
gysit wrote:

```suggestion
      [Pure, DeclareOpInterfaceMethods<InferIntRangeInterface>,
       DeclareOpInterfaceMethods<ArithIntegerOverflowFlagsInterface>]>,
```
ultra nit:

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


More information about the Mlir-commits mailing list