[Mlir-commits] [mlir] [mlir][memref] Transpose: allow affine map layouts in result, extend folder (PR #76294)

Felix Schneider llvmlistbot at llvm.org
Wed Jan 10 22:47:22 PST 2024


ubfx wrote:

I changed the patch so that `inferTransposedResultType()` returns a `MemRefType` with `StridedLayoutAttr`, which is the same as it was before this patch. I moved the change to the verifier, where now, we just make sure that the canonicalized Version of the Op's result Ttpe equals the canonicalized version of the inferred result type. This way, all existing code that creates `memref::TransposeOp` with infered result Type should behave the same after the patch, but we still allow the Op to be used (and folded) with Affine Map layouts.

https://github.com/llvm/llvm-project/pull/76294


More information about the Mlir-commits mailing list