[libc-commits] [PATCH] D157323: [libc] Allow NVPTX to use aliases
    Joseph Huber via Phabricator via libc-commits 
    libc-commits at lists.llvm.org
       
    Tue Aug  8 07:00:01 PDT 2023
    
    
  
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe74281a3c3f8: [libc] Allow NVPTX to use aliases (authored by jhuber6).
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157323/new/
https://reviews.llvm.org/D157323
Files:
  libc/src/__support/common.h
Index: libc/src/__support/common.h
===================================================================
--- libc/src/__support/common.h
+++ libc/src/__support/common.h
@@ -16,14 +16,8 @@
 #define LLVM_LIBC_FUNCTION_ATTR
 #endif
 
-// 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);                                        \
-  type __##name##_impl__ arglist
 // MacOS needs to be excluded because it does not support aliasing.
-#elif defined(LIBC_COPT_PUBLIC_PACKAGING) && (!defined(__APPLE__))
+#if defined(LIBC_COPT_PUBLIC_PACKAGING) && (!defined(__APPLE__))
 #define LLVM_LIBC_FUNCTION_IMPL(type, name, arglist)                           \
   LLVM_LIBC_FUNCTION_ATTR decltype(__llvm_libc::name)                          \
       __##name##_impl__ __asm__(#name);                                        \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157323.548202.patch
Type: text/x-patch
Size: 1085 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230808/e7e62a58/attachment.bin>
    
    
More information about the libc-commits
mailing list