[Mlir-commits] [mlir] [mlir][linalg] Type conversion of operands in new elementwise-op. (PR #131542)

Andrzej WarzyƄski llvmlistbot at llvm.org
Fri Mar 21 04:50:51 PDT 2025


================
@@ -563,13 +563,16 @@ def ElementwiseOp : LinalgStructuredBase_Op<"elementwise", [
     The number of dims of the iterator-types are inferred from the rank of
     the result type.
 
+    Numeric casting is performed on the input operand, promoting it to the same
+    data type as the result.
----------------
banach-space wrote:

Could you document that there's default casting and that it can be specialised with the `cast` attribute?

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


More information about the Mlir-commits mailing list