[libc-commits] [libc] 9fea731 - [libc] Use generic 'atan2' function for the GPU

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Mon Aug 5 05:14:48 PDT 2024


Author: Joseph Huber
Date: 2024-08-05T07:14:41-05:00
New Revision: 9fea73110ecc0a13d18e5c52f8e7fa62a9de9ee9

URL: https://github.com/llvm/llvm-project/commit/9fea73110ecc0a13d18e5c52f8e7fa62a9de9ee9
DIFF: https://github.com/llvm/llvm-project/commit/9fea73110ecc0a13d18e5c52f8e7fa62a9de9ee9.diff

LOG: [libc] Use generic 'atan2' function for the GPU

Summary:
I forget to enable this one in the previous patch.

Added: 
    

Modified: 
    libc/src/math/amdgpu/CMakeLists.txt
    libc/src/math/nvptx/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/src/math/amdgpu/CMakeLists.txt b/libc/src/math/amdgpu/CMakeLists.txt
index 2ceb12785c607..7f80f688a2c4b 100644
--- a/libc/src/math/amdgpu/CMakeLists.txt
+++ b/libc/src/math/amdgpu/CMakeLists.txt
@@ -408,18 +408,6 @@ add_entrypoint_object(
   VENDOR
 )
 
-add_entrypoint_object(
-  atan2
-  SRCS
-    atan2.cpp
-  HDRS
-    ../atan2.h
-  COMPILE_OPTIONS
-    ${bitcode_link_flags}
-    -O2
-  VENDOR
-)
-
 add_entrypoint_object(
   atanh
   SRCS

diff  --git a/libc/src/math/nvptx/CMakeLists.txt b/libc/src/math/nvptx/CMakeLists.txt
index 4295ebf9ff630..97da80b3dbaa1 100644
--- a/libc/src/math/nvptx/CMakeLists.txt
+++ b/libc/src/math/nvptx/CMakeLists.txt
@@ -349,18 +349,6 @@ add_entrypoint_object(
   VENDOR
 )
 
-add_entrypoint_object(
-  atan2
-  SRCS
-    atan2.cpp
-  HDRS
-    ../atan2.h
-  COMPILE_OPTIONS
-    ${bitcode_link_flags}
-    -O2
-  VENDOR
-)
-
 add_entrypoint_object(
   atanh
   SRCS


        


More information about the libc-commits mailing list