aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2023-12-05 11:21:07 +0100
committerGitHub <noreply@github.com>2023-12-05 11:21:07 +0100
commitb14094885077fb10ae688a4cae85f7cfee795fb3 (patch)
treea964c08cd17127c3ecba82addeb0adc7d3aecb26 /utils
parent0d0c2298552222b049fa3b8db5efef4b161e51e9 (diff)
downloadllvm-b14094885077fb10ae688a4cae85f7cfee795fb3.zip
llvm-b14094885077fb10ae688a4cae85f7cfee795fb3.tar.gz
llvm-b14094885077fb10ae688a4cae85f7cfee795fb3.tar.bz2
[libc][NFC] Remove __support/bit.h and use __support/CPP/bit.h instead (#73939)
Diffstat (limited to 'utils')
-rw-r--r--utils/bazel/llvm-project-overlay/libc/BUILD.bazel19
-rw-r--r--utils/bazel/llvm-project-overlay/libc/test/src/__support/BUILD.bazel6
-rw-r--r--utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl1
3 files changed, 2 insertions, 24 deletions
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 0b6e725..24f0371 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -439,7 +439,6 @@ libc_support_library(
name = "__support_integer_utils",
hdrs = ["src/__support/integer_utils.h"],
deps = [
- ":__support_bit",
":__support_common",
":__support_cpp_type_traits",
":__support_math_extras",
@@ -451,7 +450,6 @@ libc_support_library(
name = "__support_uint",
hdrs = ["src/__support/UInt.h"],
deps = [
- ":__support_bit",
":__support_cpp_array",
":__support_cpp_limits",
":__support_cpp_optional",
@@ -537,8 +535,8 @@ libc_support_library(
"src/__support/str_to_float.h",
],
deps = [
- ":__support_bit",
":__support_common",
+ ":__support_cpp_bit",
":__support_cpp_limits",
":__support_cpp_optional",
":__support_ctype_utils",
@@ -588,15 +586,6 @@ libc_support_library(
)
libc_support_library(
- name = "__support_bit",
- hdrs = ["src/__support/bit.h"],
- deps = [
- ":__support_cpp_type_traits",
- ":__support_macros_attributes",
- ],
-)
-
-libc_support_library(
name = "__support_math_extras",
hdrs = ["src/__support/math_extras.h"],
deps = [
@@ -610,8 +599,8 @@ libc_support_library(
name = "__support_fputil_generic_fmod",
hdrs = ["src/__support/FPUtil/generic/FMod.h"],
deps = [
- ":__support_bit",
":__support_common",
+ ":__support_cpp_bit",
":__support_cpp_limits",
":__support_cpp_type_traits",
":__support_fputil_fenv_impl",
@@ -683,7 +672,6 @@ libc_support_library(
hdrs = ["src/__support/FPUtil/FPBits.h"],
textual_hdrs = ["src/__support/FPUtil/x86_64/LongDoubleBits.h"],
deps = [
- ":__support_bit",
":__support_common",
":__support_cpp_bit",
":__support_cpp_type_traits",
@@ -711,7 +699,6 @@ libc_support_library(
name = "__support_fputil_hypot",
hdrs = ["src/__support/FPUtil/Hypot.h"],
deps = [
- ":__support_bit",
":__support_common",
":__support_cpp_bit",
":__support_cpp_type_traits",
@@ -782,7 +769,6 @@ libc_support_library(
name = "__support_fputil_sqrt",
hdrs = sqrt_hdrs,
deps = [
- ":__support_bit",
":__support_common",
":__support_cpp_bit",
":__support_cpp_type_traits",
@@ -810,7 +796,6 @@ libc_support_library(
# doesn't support FMA, so they can't be compiled on their own.
textual_hdrs = fma_platform_hdrs,
deps = [
- ":__support_bit",
":__support_cpp_bit",
":__support_cpp_type_traits",
":__support_fputil_fenv_impl",
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/__support/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/__support/BUILD.bazel
index 23071c2..a973e65 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/__support/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/__support/BUILD.bazel
@@ -11,12 +11,6 @@ package(default_visibility = ["//visibility:public"])
licenses(["notice"])
libc_test(
- name = "bit_test",
- srcs = ["bit_test.cpp"],
- deps = ["//libc:__support_bit"],
-)
-
-libc_test(
name = "math_extras_test",
srcs = ["math_extras_test.cpp"],
deps = ["//libc:__support_math_extras"],
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl b/utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl
index 2843270..1dffafdd 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl
@@ -25,7 +25,6 @@ def math_test(name, hdrs = [], deps = [], **kwargs):
srcs = [test_name + ".cpp"] + hdrs,
libc_function_deps = ["//libc:func_name".replace("func_name", name)],
deps = [
- "//libc:__support_bit",
"//libc:__support_fputil_basic_operations",
"//libc:__support_fputil_fenv_impl",
"//libc:__support_fputil_float_properties",