[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:48:42 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:

They're both 64-bit architectures that use 32-bit registers. So addresses are a combination of two contiguous registers. 

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


More information about the libc-commits mailing list