[Mlir-commits] [mlir] [mlir][spirv] Truncate Literal String size at max number words (PR #142916)

Jakub Kuderski llvmlistbot at llvm.org
Thu Jun 5 07:15:20 PDT 2025


================
@@ -30,6 +30,12 @@ constexpr uint32_t kMagicNumber = 0x07230203;
 /// The serializer tool ID registered to the Khronos Group
 constexpr uint32_t kGeneratorNumber = 22;
 
+// Max number of words
+constexpr uint32_t kMaxWordCount = 65535;
----------------
kuhar wrote:

Could you either reference the SPIR-V spec or explain why this is the maximum num of words?

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


More information about the Mlir-commits mailing list