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

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Wed Nov 29 06:46:46 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;
----------------
SchrodingerZhu wrote:

Do these GPU architectures of interest always have 64-bit general registers?

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


More information about the libc-commits mailing list