[Mlir-commits] [mlir] [mlir][vector] Adds ToElementsToTargetShape pattern. (PR #166476)

Jakub Kuderski llvmlistbot at llvm.org
Fri Nov 7 09:43:12 PST 2025


================
@@ -834,11 +843,101 @@ struct UnrollBroadcastPattern : public OpRewritePattern<vector::BroadcastOp> {
   vector::UnrollVectorOptions options;
 };
 
+/// Takes a 1 dimensional `vector.to_element` op and attempts to change it to
+/// the target shape.
+///
+/// ```
+/// // In SPIR-V's default environment vector of size 8
+/// // are not allowed.
----------------
kuhar wrote:

nit: reflow this comment

https://github.com/llvm/llvm-project/pull/166476


More information about the Mlir-commits mailing list