[Mlir-commits] [mlir] [mlir][vector] Adds ToElementsToTargetShape pattern. (PR #166476)
Erick Ochoa Lopez
llvmlistbot at llvm.org
Thu Nov 6 13:41:57 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
----------------
amd-eochoalo wrote:
https://github.com/llvm/llvm-project/pull/166476/commits/521aec0c1644e68eca7f666f5970a04fc7b57029 technically it isn't the semantics but UnrollToElements. I updated it. Let me know if you have questions.
https://github.com/llvm/llvm-project/pull/166476
More information about the Mlir-commits
mailing list