[Mlir-commits] [mlir] [MLIR][Linalg] Remove unary named ops (PR #220905)

Renato Golin llvmlistbot at llvm.org
Fri Sep 4 09:03:10 PDT 2026


================
@@ -531,7 +531,7 @@ module attributes {transform.with_named_sequence} {
 //  CHECK-DAG:      %[[SIZE:.+]] = affine.min affine_map<(d0) -> (-d0 + 4, 16)>(%[[IV]])
 //  CHECK-DAG:      %[[ELEM_SRC:.*]] = tensor.extract_slice %[[ARG0]][%[[IV]], 0] [%[[SIZE]], 4] [1, 1]
 //  CHECK-DAG:      %[[ELEM_DEST:.*]] = tensor.extract_slice %[[ELEM_OUT_ARG]][%[[IV]], 0] [%[[SIZE]], 4] [1, 1]
-//      CHECK:      %[[ELEM:.*]] = linalg.exp
+//      CHECK:      %[[ELEM:.*]] = linalg.elementwise kind=#linalg.elementwise_kind<abs>
----------------
rengolin wrote:

Those uses will have to adapt. Perhaps a follow up PR with a helper like `isElementWise<AddAttr, ExpAttr, ...>(op)`

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


More information about the Mlir-commits mailing list