[Mlir-commits] [mlir] [mlir][Vector] Add `vector.to_elements` op (PR #141457)
Diego Caballero
llvmlistbot at llvm.org
Wed Jun 18 11:45:50 PDT 2025
================
@@ -790,40 +790,95 @@ def Vector_FMAOp :
}];
}
+def Vector_ToElementsOp : Vector_Op<"to_elements", [
+ Pure,
+ TypesMatchWith<"operand element type matches result types",
+ "source", "elements", "SmallVector<Type>("
+ "::llvm::cast<VectorType>($_self).getNumElements(), "
+ "::llvm::cast<VectorType>($_self).getElementType())">]> {
----------------
dcaballe wrote:
Added `ShapedTypeMatchesElementCountAndTypes`, with the corresponding tablegen type inference support
https://github.com/llvm/llvm-project/pull/141457
More information about the Mlir-commits
mailing list