aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-07-07 06:43:08 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2023-07-07 11:49:16 -0500
commitc012eb79e2337dd901d529d40dba157476a14aa4 (patch)
tree1722f1dcf699efb67143dab9bcd2e6c4a2a3cc18 /libc
parent54eafd1bb6024fde9f1cf5171c7bd3c33dc0984d (diff)
downloadllvm-c012eb79e2337dd901d529d40dba157476a14aa4.zip
llvm-c012eb79e2337dd901d529d40dba157476a14aa4.tar.gz
llvm-c012eb79e2337dd901d529d40dba157476a14aa4.tar.bz2
[libc] Enable aliasing on AMDGPU targets
AMDGPU supports aliases now, so we can drop this case and leave it only for the NVPTX target. Unfortunately it's unlikely that NVPTX will be able to support this in the future due to their PTX language being very limited. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D154704
Diffstat (limited to 'libc')
-rw-r--r--libc/src/__support/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/src/__support/common.h b/libc/src/__support/common.h
index 300d2bc..5f2b63d 100644
--- a/libc/src/__support/common.h
+++ b/libc/src/__support/common.h
@@ -16,8 +16,8 @@
#define LLVM_LIBC_FUNCTION_ATTR
#endif
-// GPU targets do not support aliasing.
-#if defined(LIBC_COPT_PUBLIC_PACKAGING) && defined(LIBC_TARGET_ARCH_IS_GPU)
+// The NVPTX target does not support aliasing.
+#if defined(LIBC_COPT_PUBLIC_PACKAGING) && defined(LIBC_TARGET_ARCH_IS_NVPTX)
#define LLVM_LIBC_FUNCTION_IMPL(type, name, arglist) \
LLVM_LIBC_FUNCTION_ATTR decltype(__llvm_libc::name) \
__##name##_impl__ __asm__(#name); \