[Mlir-commits] [mlir] [MLIR][Linalg] Remove unary named ops (PR #220905)
Adam Siemieniuk
llvmlistbot at llvm.org
Thu Sep 3 08:21:14 PDT 2026
================
@@ -842,15 +842,15 @@ module attributes { transform.with_named_sequence } {
// expected-remark @below {{op result}}
// expected-note @below {{value handle points to an op result #0}}
// expected-remark @below {{single user}}
- linalg.negf ins(%2 : tensor<42x42xf32>) outs(%0 : tensor<42x42xf32>) -> tensor<42x42xf32>
+ linalg.elementwise kind=#linalg.elementwise_kind<negf> ins(%2 : tensor<42x42xf32>) outs(%0 : tensor<42x42xf32>) -> tensor<42x42xf32>
// expected-remark @below {{matched result value}}
// expected-remark @below {{op result}}
// expected-note @below {{value handle points to an op result #0}}
- linalg.exp ins(%3 : tensor<42x42xf32>) outs(%0 : tensor<42x42xf32>) -> tensor<42x42xf32>
+ linalg.elementwise kind=#linalg.elementwise_kind<abs> ins(%3 : tensor<42x42xf32>) outs(%0 : tensor<42x42xf32>) -> tensor<42x42xf32>
----------------
adam-smnk wrote:
nit: it might not matter here but it'd be best to keep the same op kind
https://github.com/llvm/llvm-project/pull/220905
More information about the Mlir-commits
mailing list