[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:19 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;
+
+// Max number of words for literal
----------------
kuhar wrote:
```suggestion
/// Max number of words
constexpr uint32_t kMaxWordCount = 65535;
/// Max number of words for literal
```
https://github.com/llvm/llvm-project/pull/142916
More information about the Mlir-commits
mailing list