[libc-commits] [libc] [libc] Change the GPU to use builtin memory functions (PR #68003)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Tue Oct 3 10:35:27 PDT 2023


================
@@ -23,9 +23,12 @@
 #elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV)
 #include "src/string/memory_utils/riscv/inline_bcmp.h"
 #define LIBC_SRC_STRING_MEMORY_UTILS_BCMP inline_bcmp_riscv
-#elif defined(LIBC_TARGET_ARCH_IS_ARM) || defined(LIBC_TARGET_ARCH_IS_GPU)
+#elif defined(LIBC_TARGET_ARCH_IS_ARM) || defined(LIBC_TARGET_ARCH_IS_NVPTX)
----------------
jhuber6 wrote:

Figured out that it shouldn't even work on AMDGPU, so I removed `bcmp`. We probably want to put that in the backend as well.

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


More information about the libc-commits mailing list