[llvm] [libc] add sin/cos/tan functions to bazel build file (PR #101756)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 2 14:45:56 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: None (RoseZhang03)

<details>
<summary>Changes</summary>

Needed to add sin/cos/tan fuzz tests to google3


---
Full diff: https://github.com/llvm/llvm-project/pull/101756.diff


1 Files Affected:

- (modified) utils/bazel/llvm-project-overlay/libc/BUILD.bazel (+39) 


``````````diff
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 253b89216a88f..32bc69544f031 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -2070,6 +2070,17 @@ libc_math_function(name = "fmaxl")
 
 libc_math_function(name = "fmaxf128")
 
+libc_math_function(
+    name = "cos",
+    additional_deps = [
+        ":__support_fputil_fma",
+        ":__support_macros_optimization",
+        ":__support_macros_properties_cpu_features",
+        ":range_reduction",
+        ":sincosf_utils",
+    ],
+)
+
 libc_math_function(
     name = "cosf",
     additional_deps = [
@@ -2081,6 +2092,20 @@ libc_math_function(
     ],
 )
 
+libc_math_function(
+    name = "sin",
+    additional_deps = [
+        ":__support_fputil_fma",
+        ":__support_fputil_multiply_add",
+        ":__support_fputil_polyeval",
+        ":__support_fputil_rounding_mode",
+        ":__support_macros_optimization",
+        ":__support_macros_properties_cpu_features",
+        ":range_reduction",
+        ":sincosf_utils",
+    ],
+)
+
 libc_math_function(
     name = "sincosf",
     additional_deps = [
@@ -2107,6 +2132,20 @@ libc_math_function(
     ],
 )
 
+libc_math_function(
+    name = "tan",
+    additional_deps = [
+        ":__support_fputil_fma",
+        ":__support_fputil_multiply_add",
+        ":__support_fputil_polyeval",
+        ":__support_fputil_rounding_mode",
+        ":__support_macros_optimization",
+        ":__support_macros_properties_cpu_features",
+        ":range_reduction",
+        ":sincosf_utils",
+    ],
+)
+
 libc_math_function(
     name = "tanf",
     additional_deps = [

``````````

</details>


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


More information about the llvm-commits mailing list