[Mlir-commits] [mlir] [mlir][spirv] Fix incorrect metadata in SPIR-V Header (PR #104242)

Amr Hesham llvmlistbot at llvm.org
Mon Aug 19 11:42:46 PDT 2024


================
@@ -52,7 +52,7 @@ void spirv::appendModuleHeader(SmallVectorImpl<uint32_t> &header,
   // +-------------------------------------------------------------------------+
   header.push_back(spirv::kMagicNumber);
   header.push_back((majorVersion << 16) | (minorVersion << 8));
-  header.push_back(kGeneratorNumber);
+  header.push_back((kGeneratorNumber << 16) | LLVM_VERSION_MAJOR);
----------------
AmrDeveloper wrote:

Thank you 

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


More information about the Mlir-commits mailing list