[llvm] [bazel] Port a454a3cdaf82dea7b6293d29628b70eaec918723 (PR #218289)
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 23 14:08:15 PDT 2026
https://github.com/d0k created https://github.com/llvm/llvm-project/pull/218289
None
>From 60ae8e7de4b0f671919233dd39b85c40fdb3bcb4 Mon Sep 17 00:00:00 2001
From: Benjamin Kramer <benny.kra at googlemail.com>
Date: Sun, 23 Aug 2026 23:01:57 +0200
Subject: [PATCH] [bazel] Port a454a3cdaf82dea7b6293d29628b70eaec918723
---
.../llvm-project-overlay/libc/BUILD.bazel | 63 ++++++++++++++++---
1 file changed, 55 insertions(+), 8 deletions(-)
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index a3f3d3427f518..a60ea2393d9bf 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -1390,6 +1390,15 @@ libc_support_library(
],
)
+libc_support_library(
+ name = "__support_frac64",
+ hdrs = ["src/__support/frac64.h"],
+ deps = [
+ ":__support_big_int",
+ ":__support_macros_config",
+ ],
+)
+
libc_support_library(
name = "__support_frac128",
hdrs = ["src/__support/frac128.h"],
@@ -3705,6 +3714,11 @@ libc_support_library(
########################## externally shared targets ###########################
+libc_support_library(
+ name = "shared_libc_common",
+ hdrs = ["shared/libc_common.h"],
+)
+
libc_header_library(
name = "libcxx_shared_headers",
hdrs = [
@@ -3724,18 +3738,13 @@ libc_header_library(
# This target is only used by APFloat.cpp in the Support library.
cc_library(
name = "shared_math_headers_for_apfloat",
- srcs = glob([
- "src/__support/math/*.h",
- "src/__support/math/check/*.h",
- ]),
+ srcs = glob(["src/__support/math/**/*.h"]),
hdrs = [
"shared/libc_common.h",
"shared/math.h",
"shared/math_check_exceptions.h",
- ] + glob([
- "shared/math/*.h",
- "shared/math/check/*.h",
- ]),
+ "shared/static_rounding_math.h",
+ ] + glob(["shared/math/**/*.h"]),
copts = libc_common_copts(),
includes = ["."],
deps = [
@@ -3767,6 +3776,7 @@ cc_library(
":__support_fputil_rounding_mode",
":__support_fputil_sqrt",
":__support_fputil_triple_double",
+ ":__support_frac64",
":__support_frac128",
":__support_integer_literals",
":__support_libc_errno",
@@ -7531,6 +7541,42 @@ libc_support_library(
],
)
+libc_support_library(
+ name = "__support_math_check_exp_exceptions",
+ hdrs = ["src/__support/math/check/exp_exceptions.h"],
+ deps = [
+ ":__support_common",
+ ":__support_fputil_fp_bits",
+ ":__support_macros_config",
+ ":hdr_fenv_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_expf_integer_eval",
+ hdrs = ["src/__support/math/expf_integer_eval.h"],
+ deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_polyeval",
+ ":__support_frac64",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_check_exp_exceptions",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_static_rounding_expf",
+ hdrs = ["shared/math/static_rounding/expf.h"],
+ deps = [
+ ":__support_common",
+ ":__support_macros_config",
+ ":__support_math_expf_integer_eval",
+ ":shared_libc_common",
+ ],
+)
+
libc_support_library(
name = "__support_math_expf",
hdrs = ["src/__support/math/expf.h"],
@@ -11296,6 +11342,7 @@ libc_math_function(
name = "expf",
additional_deps = [
":__support_math_expf",
+ ":__support_math_static_rounding_expf",
":errno",
],
)
More information about the llvm-commits
mailing list