[Mlir-commits] [mlir] [mlir][Vector] Add `vector.to_elements` op (PR #141457)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Mon May 26 07:19:15 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())">]> {
----------------
banach-space wrote:
Could this be shared with `vector.from_elements`?
https://github.com/llvm/llvm-project/pull/141457
More information about the Mlir-commits
mailing list