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

Igor Wodiany llvmlistbot at llvm.org
Mon Aug 11 09:43:07 PDT 2025


================
@@ -0,0 +1,29 @@
+// COM: Check that `--spirv-save-validation-files-with-prefix` generates
+// COM: a correct number of files.
+
+// REQUIRES: shell
+// RUN: rm -rf %t
+// RUN: mkdir %t
+// RUN: mlir-translate --serialize-spirv --no-implicit-module --split-input-file --spirv-save-validation-files-with-prefix=%t/foo %s
+// RUN: ls %t | wc -l | FileCheck %s
----------------
IgWod-IMG wrote:

I pulled everything, but `rm`s into one line. I think that makes a good reproducer. Actually, should I remove the final `rm -rf %t`? Because that will remove files that are needed to reproduce the issue. The example you previously shared doesn't have it and I only now realised that may be the reason: https://github.com/llvm/llvm-project/blob/9179b079812319010ab09718926ee73ca26ecc78/clang/test/PCH/leakfiles.test#L5-L18

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


More information about the Mlir-commits mailing list