[llvm] [bazel] Port #151228: BFloat16 (PR #152377)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 6 13:28:34 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Jordan Rupprecht (rupprecht)

<details>
<summary>Changes</summary>



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


1 Files Affected:

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


``````````diff
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index b46f334512979..6a9bd09a2ed56 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -1109,6 +1109,7 @@ libc_support_library(
     deps = [
         ":__support_cpp_bit",
         ":__support_cpp_type_traits",
+        ":__support_fputil_basic_operations",
         ":__support_fputil_cast",
         ":__support_fputil_comparison_operations",
         ":__support_fputil_dyadic_float",
@@ -2205,7 +2206,6 @@ libc_support_library(
     name = "__support_math_asin",
     hdrs = ["src/__support/math/asin.h"],
     deps = [
-        ":__support_math_asin_utils",
         ":__support_fputil_double_double",
         ":__support_fputil_dyadic_float",
         ":__support_fputil_fenv_impl",
@@ -2215,6 +2215,7 @@ libc_support_library(
         ":__support_fputil_sqrt",
         ":__support_macros_optimization",
         ":__support_macros_properties_cpu_features",
+        ":__support_math_asin_utils",
     ],
 )
 
@@ -2222,13 +2223,13 @@ libc_support_library(
     name = "__support_math_asinhf",
     hdrs = ["src/__support/math/asinhf.h"],
     deps = [
-        ":__support_math_acoshf_utils",
         ":__support_fputil_fp_bits",
-        ":__support_fputil_polyeval",
         ":__support_fputil_multiply_add",
+        ":__support_fputil_polyeval",
         ":__support_fputil_sqrt",
         ":__support_macros_config",
         ":__support_macros_optimization",
+        ":__support_math_acoshf_utils",
     ],
 )
 
@@ -2236,17 +2237,17 @@ libc_support_library(
     name = "__support_math_asinhf16",
     hdrs = ["src/__support/math/asinhf16.h"],
     deps = [
-        ":__support_math_acoshf_utils",
-        ":__support_fputil_fenv_impl",
-        ":__support_fputil_fp_bits",
-        ":__support_fputil_polyeval",
         ":__support_fputil_cast",
         ":__support_fputil_except_value_utils",
+        ":__support_fputil_fenv_impl",
+        ":__support_fputil_fp_bits",
         ":__support_fputil_multiply_add",
+        ":__support_fputil_polyeval",
         ":__support_fputil_rounding_mode",
         ":__support_fputil_sqrt",
         ":__support_macros_config",
         ":__support_macros_optimization",
+        ":__support_math_acoshf_utils",
     ],
 )
 
@@ -2288,12 +2289,12 @@ libc_support_library(
     name = "__support_math_atan2f",
     hdrs = ["src/__support/math/atan2f.h"],
     deps = [
+        ":__support_fputil_double_double",
         ":__support_fputil_fenv_impl",
         ":__support_fputil_fp_bits",
-        ":__support_fputil_polyeval",
-        ":__support_fputil_double_double",
         ":__support_fputil_multiply_add",
         ":__support_fputil_nearest_integer",
+        ":__support_fputil_polyeval",
         ":__support_macros_config",
         ":__support_macros_optimization",
         ":__support_math_inv_trigf_utils",
@@ -2304,13 +2305,13 @@ libc_support_library(
     name = "__support_math_atan2f128",
     hdrs = ["src/__support/math/atan2f128.h"],
     deps = [
-        ":__support_math_atan_utils",
-        ":__support_fputil_fp_bits",
         ":__support_fputil_dyadic_float",
+        ":__support_fputil_fp_bits",
         ":__support_fputil_nearest_integer",
         ":__support_integer_literals",
         ":__support_macros_config",
         ":__support_macros_optimization",
+        ":__support_math_atan_utils",
         ":__support_uint128",
     ],
 )
@@ -2337,8 +2338,8 @@ libc_support_library(
         ":__support_fputil_except_value_utils",
         ":__support_fputil_fenv_impl",
         ":__support_fputil_fp_bits",
-        ":__support_fputil_polyeval",
         ":__support_fputil_multiply_add",
+        ":__support_fputil_polyeval",
         ":__support_fputil_sqrt",
         ":__support_macros_optimization",
     ],
@@ -2348,15 +2349,15 @@ libc_support_library(
     name = "__support_math_asinf",
     hdrs = ["src/__support/math/asinf.h"],
     deps = [
-        ":__support_math_inv_trigf_utils",
+        ":__support_fputil_except_value_utils",
         ":__support_fputil_fenv_impl",
         ":__support_fputil_fp_bits",
-        ":__support_fputil_except_value_utils",
         ":__support_fputil_multiply_add",
         ":__support_fputil_sqrt",
         ":__support_macros_config",
         ":__support_macros_optimization",
         ":__support_macros_properties_cpu_features",
+        ":__support_math_inv_trigf_utils",
     ],
 )
 
@@ -2366,8 +2367,8 @@ libc_support_library(
     deps = [
         ":__support_fputil_fenv_impl",
         ":__support_fputil_fp_bits",
-        ":__support_fputil_polyeval",
         ":__support_fputil_multiply_add",
+        ":__support_fputil_polyeval",
         ":__support_fputil_sqrt",
         ":__support_macros_optimization",
     ],
@@ -2377,11 +2378,11 @@ libc_support_library(
     name = "__support_math_atanhf",
     hdrs = ["src/__support/math/atanhf.h"],
     deps = [
-        ":__support_math_acoshf_utils",
         ":__support_fputil_fenv_impl",
         ":__support_fputil_fp_bits",
         ":__support_macros_config",
         ":__support_macros_optimization",
+        ":__support_math_acoshf_utils",
     ],
 )
 
@@ -2389,12 +2390,12 @@ libc_support_library(
     name = "__support_math_atanhf16",
     hdrs = ["src/__support/math/atanhf16.h"],
     deps = [
-        ":__support_fputil_fenv_impl",
-        ":__support_fputil_fp_bits",
-        ":__support_fputil_polyeval",
         ":__support_fputil_cast",
         ":__support_fputil_except_value_utils",
+        ":__support_fputil_fenv_impl",
+        ":__support_fputil_fp_bits",
         ":__support_fputil_multiply_add",
+        ":__support_fputil_polyeval",
         ":__support_macros_config",
         ":__support_macros_optimization",
     ],
@@ -2405,9 +2406,9 @@ libc_support_library(
     hdrs = ["src/__support/math/cbrt.h"],
     deps = [
         ":__support_fputil_double_double",
-        ":__support_fputil_polyeval",
-        ":__support_fputil_fenv_impl",
         ":__support_fputil_dyadic_float",
+        ":__support_fputil_fenv_impl",
+        ":__support_fputil_polyeval",
         ":__support_integer_literals",
     ],
 )
@@ -2995,21 +2996,21 @@ libc_math_function(
 libc_math_function(
     name = "atanf",
     additional_deps = [
-        ":__support_math_atanf"
+        ":__support_math_atanf",
     ],
 )
 
 libc_math_function(
     name = "atanf16",
     additional_deps = [
-        ":__support_math_atanf16"
+        ":__support_math_atanf16",
     ],
 )
 
 libc_math_function(
     name = "atan",
     additional_deps = [
-        ":__support_math_atan"
+        ":__support_math_atan",
     ],
 )
 
@@ -3030,7 +3031,7 @@ libc_math_function(
 libc_math_function(
     name = "atan2",
     additional_deps = [
-       ":__support_math_atan2",
+        ":__support_math_atan2",
     ],
 )
 

``````````

</details>


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


More information about the llvm-commits mailing list