summaryrefslogtreecommitdiff
path: root/mlir/lib/Interfaces/VectorInterfaces.cpp
AgeCommit message (Collapse)Author
2022-11-29Reland "[mlir][Vector] Re-define masking semantics in vector.transfer ops""Diego Caballero
This relands commit 847b5f82a4a34218bf16d6f83f1b7c32df3117ba. Differential Revision: https://reviews.llvm.org/D138079
2022-11-18Revert "[mlir][Vector] Re-define masking semantics in vector.transfer ops"Diego Caballero
This reverts commit 6c59c5cd08c879c9d1cfa653711613244a7c39bf.
2022-11-18[mlir][Vector] Re-define masking semantics in vector.transfer opsDiego Caballero
Masking hasn't been widely used in vector transfer ops and the semantics of the mask operand were a bit loose. This patch states that the mask operand in a vector transfer op is applied to the read/write part of the operation and, therefore, its shape should match the shape of the elements read/written from/into the memref/tensor regardless of any permutation/broadcasting also applied by the transfer operation. Reviewers: nicolasvasilache Differential Revision: https://reviews.llvm.org/D138079
2021-12-01[mlir][Vector] Thread 0-d vectors through vector.transfer opsNicolas Vasilache
This revision adds 0-d vector support to vector.transfer ops. In the process, numerous cleanups are applied, in particular around normalizing and reducing the number of builders. Reviewed By: ThomasRaoux, springerm Differential Revision: https://reviews.llvm.org/D114803
2021-05-13[mlir] Unrolled progressive-vector-to-scf.Matthias Springer
Instead of an SCF for loop, these pattern generate fully unrolled loops with no temporary buffer allocations. Differential Revision: https://reviews.llvm.org/D101981
2021-05-13[mlir] Fix masked vector transfer ops with broadcastsMatthias Springer
Broadcast dimensions of a vector transfer op have no corresponding dimension in the mask vector. E.g., a 2-D TransferReadOp, where one dimension is a broadcast, can have a 1-D `mask` attribute. This commit also adds a few additional transfer op integration tests for various combinations of broadcasts, masking, dim transposes, etc. Differential Revision: https://reviews.llvm.org/D101745
2021-05-13Revert "[mlir] Fix masked vector transfer ops with broadcasts"Matthias Springer
This reverts commit c9087788f7e41285445729127dd07ff7f82e3fc0. Accidentally pushed old version of the commit.
2021-05-13[mlir] Fix masked vector transfer ops with broadcastsMatthias Springer
Broadcast dimensions of a vector transfer op have no corresponding dimension in the mask vector. E.g., a 2-D TransferReadOp, where one dimension is a broadcast, can have a 1-D `mask` attribute. This commit also adds a few additional transfer op integration tests for various combinations of broadcasts, masking, dim transposes, etc. Differential Revision: https://reviews.llvm.org/D101745
2020-10-29[mlir] NFC: fix trivial typosKazuaki Ishizaki
fix typos in comments and documents Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D90089
2020-07-20[mlir][Vector] NFC - Improve VectorInterfacesNicolas Vasilache
This revision improves and makes better use of OpInterfaces for the Vector dialect. Differential Revision: https://reviews.llvm.org/D84053