[compiler-rt] [scudo] Add support for LoongArch hardware CRC32 checksumming (PR #83113)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 27 00:46:49 PST 2024
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 ed1aabef1da1b074b71ad523978ea836d6e7d2e7 630b3aafd580326ffb5d3daee261fcc2d8177263 -- compiler-rt/lib/scudo/standalone/checksum.cpp compiler-rt/lib/scudo/standalone/checksum.h compiler-rt/lib/scudo/standalone/crc32_hw.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/scudo/standalone/checksum.cpp b/compiler-rt/lib/scudo/standalone/checksum.cpp
index 09fa541765..6c1ee76264 100644
--- a/compiler-rt/lib/scudo/standalone/checksum.cpp
+++ b/compiler-rt/lib/scudo/standalone/checksum.cpp
@@ -81,7 +81,8 @@ bool hasHardwareCRC32() {
// Query HWCAP for platform capability, according to *Software Development and
// Build Convention for LoongArch Architectures* v0.1, Section 9.1.
//
-// Link: https://github.com/loongson/la-softdev-convention/blob/v0.1/la-softdev-convention.adoc#kernel-development
+// Link:
+// https://github.com/loongson/la-softdev-convention/blob/v0.1/la-softdev-convention.adoc#kernel-development
bool hasHardwareCRC32() {
return !!(getauxval(AT_HWCAP) & HWCAP_LOONGARCH_CRC32);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/83113
More information about the llvm-commits
mailing list