[Mlir-commits] [mlir] [mlir][arith] Add rounding mode flags to binary arithmetic operations (PR #188458)

Krzysztof Drewniak llvmlistbot at llvm.org
Wed Mar 25 09:00:46 PDT 2026


================
@@ -90,6 +90,37 @@ class Arith_FloatBinaryOp<string mnemonic, list<Trait> traits = []> :
                           attr-dict `:` type($result) }];
 }
 
+// Base class for floating point binary operations with an optional rounding
+// mode.
+class Arith_FloatBinaryOpWithRoundingMode<string mnemonic,
+                                          list<Trait> traits = []> :
+    Arith_BinaryOp<mnemonic,
----------------
krzysz00 wrote:

You can `let` in the derived class to overrride the assembly format from FloatBinaryOp.

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


More information about the Mlir-commits mailing list