Skip to content

Commit c012eb7

Browse files
committed
[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
1 parent 54eafd1 commit c012eb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/__support/common.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#define LLVM_LIBC_FUNCTION_ATTR
1717
#endif
1818

19-
// GPU targets do not support aliasing.
20-
#if defined(LIBC_COPT_PUBLIC_PACKAGING) && defined(LIBC_TARGET_ARCH_IS_GPU)
19+
// The NVPTX target does not support aliasing.
20+
#if defined(LIBC_COPT_PUBLIC_PACKAGING) && defined(LIBC_TARGET_ARCH_IS_NVPTX)
2121
#define LLVM_LIBC_FUNCTION_IMPL(type, name, arglist) \
2222
LLVM_LIBC_FUNCTION_ATTR decltype(__llvm_libc::name) \
2323
__##name##_impl__ __asm__(#name); \

0 commit comments

Comments
 (0)