[libc-commits] [libc] [libc] Fix the GPU build for the hashing support (PR #73799)

via libc-commits libc-commits at lists.llvm.org
Wed Nov 29 06:47:21 PST 2023


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 3c00c8c0fcd64600f7adc4538b2116a91ef60ced f7138df81e9839a7cbba303adbb1e2bcaaad3c08 -- libc/src/__support/HashTable/generic/bitmask_impl.inc
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libc/src/__support/HashTable/generic/bitmask_impl.inc b/libc/src/__support/HashTable/generic/bitmask_impl.inc
index 8c6188133a..bd3ec48e72 100644
--- a/libc/src/__support/HashTable/generic/bitmask_impl.inc
+++ b/libc/src/__support/HashTable/generic/bitmask_impl.inc
@@ -6,17 +6,17 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "src/__support/endian.h"
 #include "src/__support/common.h"
+#include "src/__support/endian.h"
 
 namespace LIBC_NAMESPACE {
 namespace internal {
 
 // FIXME: The GPU build cannot use 'uintptr_t' directly.
 #ifdef LIBC_TARGET_ARCH_IS_GPU
-  using bitmask_t = uint64_t;
+using bitmask_t = uint64_t;
 #else
-  using bitmask_t = uintptr_t;
+using bitmask_t = uintptr_t;
 #endif
 
 // Helper function to spread a byte across the whole word.

``````````

</details>


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


More information about the libc-commits mailing list