[all-commits] [llvm/llvm-project] fc8f46: [mlir][MemRef] Allow transposed layouts in ExpandS...

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Wed Apr 6 01:19:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc8f465a0008826cb7431eb5684861477998662c
      https://github.com/llvm/llvm-project/commit/fc8f465a0008826cb7431eb5684861477998662c
  Author: Nicolas Vasilache <ntv at google.com>
  Date:   2022-04-06 (Wed, 06 Apr 2022)

  Changed paths:
    M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
    M mlir/test/Dialect/MemRef/invalid.mlir
    M mlir/test/Dialect/MemRef/ops.mlir
    M mlir/test/Dialect/Tensor/bufferize.mlir

  Log Message:
  -----------
  [mlir][MemRef] Allow transposed layouts in ExpandShapeOp.

https://reviews.llvm.org/D122641 introduced fixes to the ExpandShapeOp verifier
but also introduced an artificial layout limitation that prevents the consideration of transposed layouts.

This revision fixes the omissions and reimplements the logic using saturated arithmetic which is more
idiomatic and avoids leaking internal implementation details.

Tests cases are added for transposed layouts.

Reviewed By: springerm

Differential Revision: https://reviews.llvm.org/D122845




More information about the All-commits mailing list