[Mlir-commits] [mlir] [mlir][LinalgBlockPackMatmul] Add support for scalable block factors (PR #211354)

Adam Siemieniuk llvmlistbot at llvm.org
Thu Jul 23 01:15:26 PDT 2026


================
@@ -300,7 +329,28 @@ struct LinalgBlockPackMatmul
     ControlBlockPackMatmulFn controlFn =
         [&](linalg::LinalgOp op) -> BlockPackMatmulOptions {
       BlockPackMatmulOptions options;
-      options.blockFactors = SmallVector<int64_t>{*blockFactors};
+
+      // Parse block-factors strings. Each element is either "N" (static) or
+      // "[N]" (scalable, i.e. N * vscale at runtime).
+      for (const std::string &f : *blockFactors) {
+        StringRef s(f);
----------------
adam-smnk wrote:

nit: I'd suggest more expressive variable names

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


More information about the Mlir-commits mailing list