This changes the op to produce AnyVectorOfAnyRank following mostly the code for 1-D vectors.
Depends On D114598
Paths
| Differential D114550
[mlir][Vector] Support 0-D vectors in `BroadcastOp` ClosedPublic Authored by michalt on Nov 24 2021, 10:51 AM.
Details Summary This changes the op to produce AnyVectorOfAnyRank following mostly the code for 1-D vectors. Depends On D114598
Diff Detail
Event Timelinemichalt retitled this revision from [mlir][Vector] Support 0-D vectors in `BroadcastOp` to [mlir][Vector] Support 0-D vectors in `BroadcastOp`/`SplatOp`.Nov 24 2021, 11:57 AM Comment Actions Generally looks good, thank you !
This revision now requires changes to proceed.Nov 24 2021, 12:27 PM michalt retitled this revision from [mlir][Vector] Support 0-D vectors in `BroadcastOp`/`SplatOp` to [mlir][Vector] Support 0-D vectors in `BroadcastOp`. Comment Actions LGTM, thanks! This will prob. also need to be rebased since I couldn't land the parent. This revision is now accepted and ready to land.Nov 25 2021, 12:19 PM This revision was landed with ongoing or failed builds.Nov 26 2021, 9:19 AM Closed by commit rG7e65fc9a6009: [mlir][Vector] Support 0-D vectors in `BroadcastOp` (authored by michalt, committed by nicolasvasilache). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 389552 mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
mlir/include/mlir/Dialect/Vector/VectorOps.td
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
mlir/lib/Dialect/Vector/VectorTransforms.cpp
mlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir
mlir/test/Integration/Dialect/Vector/CPU/test-0-d-vectors.mlir
|
SplatOp requires its own independent tests that are missing here.
Can you please have a first revision that changes the semantics of SplatOp and adds a proper test?
Then you can stack this on top and keep things orthogonal.