[all-commits] [llvm/llvm-project] 43baee: [MLIR][Linalg] Remove ternary named op

Renato Golin via All-commits all-commits at lists.llvm.org
Wed Sep 9 08:22:32 PDT 2026


  Branch: refs/heads/users/rengolin/linalg/ternary
  Home:   https://github.com/llvm/llvm-project
  Commit: 43baeeb8e3261db436513e33edc89dbaf3b6b2d8
      https://github.com/llvm/llvm-project/commit/43baeeb8e3261db436513e33edc89dbaf3b6b2d8
  Author: Renato Golin <rengolin at systemcall.eu>
  Date:   2026-09-09 (Wed, 09 Sep 2026)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
    M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
    M mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
    R mlir/lib/Dialect/Linalg/Transforms/CategoryToNamedOp.cpp
    M mlir/lib/Dialect/Linalg/Transforms/MorphOps.cpp
    R mlir/lib/Dialect/Linalg/Transforms/NamedToElementwise.cpp
    M mlir/lib/Dialect/Linalg/Transforms/Specialize.cpp
    M mlir/python/mlir/dialects/linalg/opdsl/ops/core_named_ops.py
    R mlir/test/Dialect/Linalg/elementwise/named-to-elementwise.mlir
    M mlir/test/Dialect/Linalg/generalize-named-ops.mlir
    M mlir/test/Dialect/Linalg/linalg-morph-elementwise-to-named.mlir
    R mlir/test/Dialect/Linalg/named-ops-fail.mlir
    M mlir/test/Dialect/Linalg/named-ops.mlir

  Log Message:
  -----------
  [MLIR][Linalg] Remove ternary named op

Removes the named op `select` from the Linalg dialect.

I have also updated the ElementwiseOp builder to simplify the default
case: kind + no affine map.

Depends on both unary and binary removal branches.

Ref:
https://discourse.llvm.org/t/rfc-update-semantics-of-linalg-named-operations-unary-binary-ternary/91531


  Commit: 7cf07535c1d55be8f3f13b87cd1737ffb26a2787
      https://github.com/llvm/llvm-project/commit/7cf07535c1d55be8f3f13b87cd1737ffb26a2787
  Author: rengolin <rengolin at systemcall.eu>
  Date:   2026-09-09 (Wed, 09 Sep 2026)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/Specialize.cpp
    M mlir/test/Dialect/Linalg/decompose-generic-by-unfolding-projected-permutation.mlir
    M mlir/test/Dialect/Linalg/specialize-generic-ops.mlir
    M mlir/test/Dialect/Linalg/transform-op-specialize-elemwise-binary.mlir

  Log Message:
  -----------
  [MLIR][Linalg] Named ops morph cleanup


  Commit: f32c0155ad6e7dda37294bd9e277282eb1a26a8d
      https://github.com/llvm/llvm-project/commit/f32c0155ad6e7dda37294bd9e277282eb1a26a8d
  Author: rengolin <rengolin at systemcall.eu>
  Date:   2026-09-09 (Wed, 09 Sep 2026)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/Specialize.cpp

  Log Message:
  -----------
  format


  Commit: 8c08c14ee609fef517291532881221c7174ecb3a
      https://github.com/llvm/llvm-project/commit/8c08c14ee609fef517291532881221c7174ecb3a
  Author: rengolin <rengolin at systemcall.eu>
  Date:   2026-09-09 (Wed, 09 Sep 2026)

  Changed paths:
    M mlir/test/Dialect/Linalg/transform-op-specialize-elemwise-binary.mlir

  Log Message:
  -----------
  strict properties


Compare: https://github.com/llvm/llvm-project/compare/4cb33d636ce1...8c08c14ee609

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list