[Mlir-commits] [mlir] [mlir][vector] Add vector.to_elements unrolling (PR #157142)

Jakub Kuderski llvmlistbot at llvm.org
Fri Sep 5 11:05:09 PDT 2025


================
@@ -393,6 +393,27 @@ vector::isValidMaskedInputVector(ArrayRef<int64_t> shape,
   return success();
 }
 
+LogicalResult vector::unrollVectorValue(Value vector, PatternRewriter &rewriter,
+                                        SmallVector<Value> &subvectors) {
+  assert(isa<VectorType>(vector.getType()) && "expected vector type");
----------------
kuhar wrote:

`cast` is defined to assert, we don't need a separate assertion here

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


More information about the Mlir-commits mailing list