[Mlir-commits] [mlir] [mlir] Return vectorized values instead of replacing (PR #144158)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jun 23 06:58:43 PDT 2025


================
@@ -771,17 +771,24 @@ LogicalResult deallocateGPUPrivateMemory(OpBuilder &, Value /*buffer*/);
 /// to work (these are checked by the vectorizer itself).
 bool hasVectorizationImpl(Operation *);
 
+/// Transformation information returned after vectorizing.
+struct VectorizationResult {
+  /// Results of the vectorization transform to replace the original operation.
+  SmallVector<Value> replacements;
+};
----------------
Max191 wrote:

RE (2): I didn't know about this, but I looked into some of the lit tests, and there does seem to be an example of a linalg op with multiple results: https://github.com/llvm/llvm-project/blob/cd91d0fff9293a904704784c92c28637bfebef45/mlir/test/Dialect/Linalg/vectorization/linalg-ops-with-patterns.mlir#L1390-L1406

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


More information about the Mlir-commits mailing list