[all-commits] [llvm/llvm-project] 09479f: [mlir] Interface-ify updating starting positions o...

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Thu Apr 30 15:16:15 PDT 2026


  Branch: refs/heads/users/krzysz00/update-method-vector-transfers
  Home:   https://github.com/llvm/llvm-project
  Commit: 09479f02296006caaffdd67c99f4d52ec883a7fa
      https://github.com/llvm/llvm-project/commit/09479f02296006caaffdd67c99f4d52ec883a7fa
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2026-04-30 (Thu, 30 Apr 2026)

  Changed paths:
    M mlir/include/mlir/Interfaces/VectorInterfaces.h
    M mlir/include/mlir/Interfaces/VectorInterfaces.td
    M mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp
    M mlir/test/Dialect/MemRef/fold-memref-alias-ops.mlir

  Log Message:
  -----------
  [mlir] Interface-ify updating starting positions on vector.transfer_*

This commit adds methods to VectorTransferOpInterface that allow
transfer operations to be queried for whether their base memref (or
tensor) and permutation map can be updated in some particular way and
then for performing this update. This is part of a series of changes
designed to make passes like fold-memref-alias-ops more generic,
allowing downstream operations, like IREE's transfer_gather, to
participate in them without needing to duplicate patterns.

In order to test this new method, migrate FoldMemrefAliasOps to use
these methods to fold memref.subview, memref.expand_shape,and
memref.collapse_shape into tranfer_read and transfer_write.

AI note: the tranfer_read / transfer_write patterns, which are taken
from a previous PR, were written with Claude 4.5.



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