[llvm] [bazel] Port #151228: BFloat16 (PR #152377)
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 13:27:58 PDT 2025
https://github.com/rupprecht created https://github.com/llvm/llvm-project/pull/152377
None
>From 05a3c1838dd1fcb49d3210d722d15f28b665f87f Mon Sep 17 00:00:00 2001
From: Jordan Rupprecht <rupprecht at google.com>
Date: Wed, 6 Aug 2025 13:26:50 -0700
Subject: [PATCH] [bazel] Port #151228: BFloat16
---
.../llvm-project-overlay/libc/BUILD.bazel | 51 ++++++++++---------
1 file changed, 26 insertions(+), 25 deletions(-)
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",
],
)
More information about the llvm-commits
mailing list