[all-commits] [llvm/llvm-project] 57a472: [mlir][linalg] Produce canonical linalg.generic fo...

fabrizio-indirli via All-commits all-commits at lists.llvm.org
Wed Aug 27 02:54:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57a472767e8ce7e795aac7e5d0a3e8a6b3ea2918
      https://github.com/llvm/llvm-project/commit/57a472767e8ce7e795aac7e5d0a3e8a6b3ea2918
  Author: fabrizio-indirli <fabrizio.indirli at arm.com>
  Date:   2025-08-27 (Wed, 27 Aug 2025)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/ConvertConv2DToImg2Col.cpp
    M mlir/test/Dialect/Linalg/convert-conv2d-to-img2col.mlir

  Log Message:
  -----------
  [mlir][linalg] Produce canonical linalg.generic for im2col (#134675)

Before this patch, the Img2Col transform produced a non-canonical
linalg.generic whose input tensor was not reported in the inputs of the
operation: instead, it was accessed manually from inside the op body,
after an internal calculation of the access offsets. This patch modifies
the Im2Col rewrite to produce a canonical linalg.generic whose input is
correctly reported in its 'ins()', whose access offsets are computed
through an indexing map, and whose body contains only a 'linalg.yield'
op.

Signed-off-by: Fabrizio Indirli <Fabrizio.Indirli at arm.com>
Co-authored-by: Georgios Pinitas <georgios.pinitas at arm.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