[Mlir-commits] [mlir] [MLIR][Linalg] Remove elemwise_unary and elemwise_binary (PR #147082)

Rolf Morel llvmlistbot at llvm.org
Fri Jul 4 10:45:47 PDT 2025


================
@@ -26,8 +26,8 @@ module {
       // CHECK: %[[T1:.*]] = linalg.fill {{.*}} outs(%[[T0]]
       %6 = tensor.extract_slice %0[%3] [%4] [1] : tensor<?xf32> to tensor<?xf32>
 
-      // CHECK: %[[T2:.*]] = linalg.elemwise_unary ins(%[[T1]]
-      %7 = linalg.elemwise_unary ins(%6 : tensor<?xf32>) outs(%5 : tensor<?xf32>) -> tensor<?xf32>
----------------
rolfmorel wrote:

What is/was the default for `linalg.elemwise_unary` when `fun` is not provided? Is it the `0`th enum item, i.e. `UnaryFn::exp`?

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


More information about the Mlir-commits mailing list