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

Andrea Faulds llvmlistbot at llvm.org
Thu Aug 15 05:34:52 PDT 2024


================
@@ -51,7 +51,7 @@ void spirv::appendModuleHeader(SmallVectorImpl<uint32_t> &header,
   // | 0 (reserved for instruction schema)                                     |
   // +-------------------------------------------------------------------------+
   header.push_back(spirv::kMagicNumber);
-  header.push_back((majorVersion << 16) | (minorVersion << 8));
+  header.push_back((majorVersion << 8) | minorVersion);
   header.push_back(kGeneratorNumber);
----------------
andfau-amd wrote:

The generator number was the thing the issue was about, and that isn't changed here, so this pull request doesn't fix the issue.

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


More information about the Mlir-commits mailing list