[llvm] [bazel] Port #150087 and #144983 (PR #150255)
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 23 09:40:26 PDT 2025
https://github.com/rupprecht created https://github.com/llvm/llvm-project/pull/150255
None
>From c046d1678f423e3923b55ee7351be9f2217e64a0 Mon Sep 17 00:00:00 2001
From: Jordan Rupprecht <rupprecht at google.com>
Date: Wed, 23 Jul 2025 09:39:44 -0700
Subject: [PATCH] [bazel] Port #150087 and #144983
---
utils/bazel/llvm-project-overlay/libc/BUILD.bazel | 13 +++++++++++++
.../libc/test/src/__support/FPUtil/BUILD.bazel | 12 ++++++++++++
.../libc/utils/MPFRWrapper/BUILD.bazel | 1 +
3 files changed, 26 insertions(+)
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 841b7aa7e3478..0ef091cec6bb8 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -1001,6 +1001,19 @@ libc_support_library(
],
)
+libc_support_library(
+ name = "__support_fputil_comparison_operations",
+ hdrs = [
+ "src/__support/FPUtil/comparison_operations.h",
+ ],
+ deps = [
+ ":__support_cpp_type_traits",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_macros_config",
+ ],
+)
+
libc_support_library(
name = "__support_file_file",
srcs = [
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/__support/FPUtil/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/__support/FPUtil/BUILD.bazel
index acca1dd87e7be..a2942f2fcd38f 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/__support/FPUtil/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/__support/FPUtil/BUILD.bazel
@@ -58,3 +58,15 @@ libc_test(
"//libc/utils/MPFRWrapper:mpfr_wrapper",
],
)
+
+libc_test(
+ name = "comparison_operations_test",
+ srcs = ["comparison_operations_test.cpp"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ "//libc:__support_fputil_comparison_operations",
+ "//libc:__support_fputil_rounding_mode",
+ "//libc:__support_macros_properties_types",
+ "//libc/test/UnitTest:fp_test_helpers",
+ ],
+)
diff --git a/utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel
index 6fd88211a4ba3..5a41ef489f182 100644
--- a/utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel
@@ -44,6 +44,7 @@ libc_test_library(
"//libc:__support_cpp_type_traits",
"//libc:__support_fputil_bfloat16",
"//libc:__support_fputil_cast",
+ "//libc:__support_fputil_comparison_operations",
"//libc:__support_fputil_fp_bits",
"//libc:__support_macros_config",
"//libc:__support_macros_properties_types",
More information about the llvm-commits
mailing list