[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 06:00:22 PDT 2025


IgWod-IMG wrote:

I agree the global counter solution was not great. I wanted not to keep it simple, but in the hindsight, I realised how many issues I haven't considered. I have updated the code to use `llvm::sys::fs::createUniqueFile` ([link](https://llvm.org/doxygen/namespacellvm_1_1sys_1_1fs.html#a7efe580e0855b9d68d0b884b79ebf955)) that I have only found. It is thread safe and generates a unique name. I've just pushed a relevant change, and I'll work on adding a test now.

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


More information about the Mlir-commits mailing list