[Mlir-commits] [mlir] [mlir][vector] Adds ToElementsToTargetShape pattern. (PR #166476)
Jakub Kuderski
llvmlistbot at llvm.org
Thu Nov 6 12:52:59 PST 2025
================
@@ -1435,6 +1435,15 @@ int mlir::spirv::getComputeVectorSize(int64_t size) {
return 1;
}
+SmallVector<int64_t>
+mlir::spirv::getNativeVectorShapeImpl(vector::ToElementsOp op) {
+ VectorType srcVectorType = op.getSourceVectorType();
+ assert(srcVectorType.getRank() == 1); // Guaranteed by semantics
----------------
kuhar wrote:
```suggestion
assert(srcVectorType.getRank() == 1); // Guaranteed by the semantics.
```
https://github.com/llvm/llvm-project/pull/166476
More information about the Mlir-commits
mailing list