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

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Wed Nov 29 06:54:08 PST 2023


================
@@ -7,37 +7,46 @@
 //===----------------------------------------------------------------------===//
 
 #include "src/__support/endian.h"
+#include "src/__support/common.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;
----------------
jhuber6 wrote:

Alright, that would require divergence from `intptr_t` anyway so I guess this patch would still be necessary for that behavior.

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


More information about the libc-commits mailing list