[llvm] [OFFOLOAD][L0] Add support to dump embedded spirv files (PR #180715)
Alex Duran via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 10 23:54:34 PST 2026
================
@@ -417,7 +420,21 @@ Error L0ProgramBuilderTy::buildModules(const std::string_view BuildOptions) {
const unsigned char *ImgBegin =
reinterpret_cast<const unsigned char *>(It->second.PartBegin[I]);
size_t ImgSize = It->second.PartSize[I];
-
+ ODBG_OS(OLDT_BinaryDump, [&](llvm::raw_ostream &Os) {
+ std::string Filename = llvm::formatv(
+ "{0}_image{1}_module_{2}_{3}.{4}", utils::os::getExecName(),
+ ImageId++, Idx, I, (IsBinary ? "bin" : "spv"));
----------------
adurang wrote:
Good catch, fixe. thanks!
https://github.com/llvm/llvm-project/pull/180715
More information about the llvm-commits
mailing list