[mlir][vector] Add scalable vectors support to OuterProductOp
authorFrank (Fang) Gao <fang.gao1@huawei.com>
Fri, 13 Jan 2023 15:47:44 +0000 (10:47 -0500)
committerPrabhdeep Singh Soni <prabhdeep.singh.soni3@huawei.com>
Mon, 16 Jan 2023 16:49:11 +0000 (11:49 -0500)
commit688d6507c7e2f49668ab0d1f71a1f86f933f99f1
treeabe2c2b067027390109e575aac9165a6aec9e51c
parent3e38fdf686900012c8a1875d76d2ef58c9ae43b6
[mlir][vector] Add scalable vectors support to OuterProductOp

This will probably be the first in a series of patches that tries to
enable code generation for ARM SME (extension of SVE).

Since SME's core operation is the outer product instruction, I figured
that it would probably be a good idea to enable the outer product
operation to properly accept and generate scalable vectors.

Reviewed By: dcaballe

Differential Revision: https://reviews.llvm.org/D138718
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
mlir/test/Dialect/Vector/vector-scalable-outerproduct.mlir [new file with mode: 0644]