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

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Tue May 13 09:13:30 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5198205fb7d0228fdab2c08a24d22e97de673e51
      https://github.com/llvm/llvm-project/commit/5198205fb7d0228fdab2c08a24d22e97de673e51
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2025-05-13 (Tue, 13 May 2025)

  Changed paths:
    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 (#138929)

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