[Mlir-commits] [mlir] [mlir][spirv] Enable serializer to write SPIR-V modules into separate files (PR #152678)

Davide Grohmann llvmlistbot at llvm.org
Mon Aug 11 07:20:22 PDT 2025


================
@@ -34,7 +34,17 @@ struct SerializationOptions {
   /// tool. This saved file is later used for validation.
   bool saveModuleForValidation = false;
   /// A prefix prepended to the file used when `saveModuleForValidation`
-  /// is set to `true`.
+  /// is set to `true`. This can either be a file prefix, or a relative or
+  /// or an absolute path followed by the prefix. For example:
+  ///
+  ///   * "foo" - Create files with a `foo` prefix in the current working
+  ///     directory. For example: `foo0`, `foo1` ... `fooN`.
----------------
davidegrohmann wrote:

This example here is not really matching what is generated now.

>From `llvm/include/llvm/Support/FileSystem.h`
> The name is based on \a Model with '%' replaced by a random char in [0-9a-f].

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


More information about the Mlir-commits mailing list