[Mlir-commits] [mlir] [mlir][Vector] Add `vector.to_elements` op (PR #141457)

Diego Caballero llvmlistbot at llvm.org
Wed Jun 11 11:52:31 PDT 2025


================
@@ -789,6 +789,57 @@ def Vector_FMAOp :
   }];
 }
 
+def Vector_ToElementsOp : Vector_Op<"to_elements", [
+    Pure,
+    TypesMatchWith<"operand element type matches result types",
+                   "input", "elements", "SmallVector<Type>("
+                   "::llvm::cast<VectorType>($_self).getNumElements(), "
+                   "::llvm::cast<VectorType>($_self).getElementType())">]> {
----------------
dcaballe wrote:

The check is inverse so I'm not sure how to create a record that doesn't require to provide the same information here

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


More information about the Mlir-commits mailing list