[all-commits] [llvm/llvm-project] 22cb18: [mlir][affine] Make [de]linearize_index a valid so...

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Wed May 7 11:17:04 PDT 2025


  Branch: refs/heads/users/krzysz00/linearize-delinearize-dims
  Home:   https://github.com/llvm/llvm-project
  Commit: 22cb18fc3ffaa89906059603dfff962c50502243
      https://github.com/llvm/llvm-project/commit/22cb18fc3ffaa89906059603dfff962c50502243
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M mlir/include/mlir/Dialect/Affine/IR/AffineOps.td
    M mlir/lib/Dialect/Affine/IR/AffineOps.cpp
    M mlir/test/Dialect/Affine/invalid.mlir
    M mlir/test/Dialect/Affine/ops.mlir

  Log Message:
  -----------
  [mlir][affine] Make [de]linearize_index a valid source of dims

There's a sense in which affine.linearize_index and
affine.delinearize_index are special-cases of affine.apply (which get
their own ops to enable better code generation and more accurate
canonicalization). Therefore, allow these operations to be dimension
operands for operations like affine.load just like affine.apply can be.



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