[Mlir-commits] [mlir] [mlir][spirv] Truncate Literal String size at max number words (PR #142916)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Jun 10 07:01:39 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- mlir/include/mlir/Target/SPIRV/SPIRVBinaryUtils.h mlir/lib/Target/SPIRV/SPIRVBinaryUtils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Target/SPIRV/SPIRVBinaryUtils.h b/mlir/include/mlir/Target/SPIRV/SPIRVBinaryUtils.h
index 746515371..da5643d79 100644
--- a/mlir/include/mlir/Target/SPIRV/SPIRVBinaryUtils.h
+++ b/mlir/include/mlir/Target/SPIRV/SPIRVBinaryUtils.h
@@ -31,7 +31,8 @@ constexpr uint32_t kMagicNumber = 0x07230203;
constexpr uint32_t kGeneratorNumber = 22;
/// Max number of words
-/// See https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#_universal_limits
+/// See
+/// https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#_universal_limits
constexpr uint32_t kMaxWordCount = 65535;
/// Max number of words for literal
``````````
</details>
https://github.com/llvm/llvm-project/pull/142916
More information about the Mlir-commits
mailing list