[all-commits] [llvm/llvm-project] a460d7: [mlir][linalg] Add category-to-named conversion in...

Javed Absar via All-commits all-commits at lists.llvm.org
Thu Jun 25 02:32:09 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a460d7ecf04e551234edf1a342e333abdf346431
      https://github.com/llvm/llvm-project/commit/a460d7ecf04e551234edf1a342e333abdf346431
  Author: Javed Absar <javed.absar at gmail.com>
  Date:   2026-06-25 (Thu, 25 Jun 2026)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/Passes.td
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
    M mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
    A mlir/lib/Dialect/Linalg/Transforms/CategoryToNamedOp.cpp
    M mlir/lib/Dialect/Linalg/Transforms/MorphOps.cpp
    A mlir/test/Dialect/Linalg/linalg-morph-elementwise-to-named.mlir

  Log Message:
  -----------
  [mlir][linalg] Add category-to-named conversion in linalg-morph-ops (#205582)

Add the missing `category-to-named` morphism path that converts
`linalg.elementwise` ops to their equivalent named ops (e.g.
`linalg.elementwise kind=add` -> `linalg.add`). This completes the set
of conversions in the linalg-morph-ops pass:

  generic <---> category <---> named

The conversion only applies to elementwise ops with identity indexing
maps, since named elementwise ops cannot carry custom maps. Kinds
without a named op equivalent (e.g. sin, cos) are left unconverted.

Co-authored-by: mabsar <mabsar at qti.qualcommm.com>



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