[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 05:54:15 PDT 2025
================
@@ -76,24 +79,68 @@ void registerFromSPIRVTranslation() {
// Serialization registration
//===----------------------------------------------------------------------===//
-static LogicalResult serializeModule(spirv::ModuleOp module,
- raw_ostream &output) {
+// Static variable is probably not ideal, but it lets us have unique files names
+// without taking additional parameters from `mlir-translate`.
+static size_t validationFileCounter = 0;
----------------
IgWod-IMG wrote:
Not relevant anymore.
https://github.com/llvm/llvm-project/pull/152678
More information about the Mlir-commits
mailing list