Skip to content

Commit 5dda2ef

Browse files
committed
Re-Reland "[benchmarks] Move libcxx's fork of google/benchmark and llvm/utils'"
This reverts commit b2fbd45. D114922 fixed the reason of the 2nd revert. This patch also re-applies 39e9f5d. Differential Revision: https://reviews.llvm.org/D112012
1 parent 572d1ec commit 5dda2ef

File tree

258 files changed

+10
-14958
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+10
-14958
lines changed

libc/benchmarks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ string(REPLACE ";" " " GOOGLE_BENCHMARK_TARGET_FLAGS "${GOOGLE_BENCHMARK_TARGET_
1717
ExternalProject_Add(google-benchmark
1818
EXCLUDE_FROM_ALL ON
1919
PREFIX google-benchmark
20-
SOURCE_DIR ${LIBC_SOURCE_DIR}/../llvm/utils/benchmark
20+
SOURCE_DIR ${LLVM_THIRD_PARTY_DIR}/benchmark
2121
INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/google-benchmark
2222
CMAKE_CACHE_ARGS
2323
-DBUILD_SHARED_LIBS:BOOL=OFF

libc/benchmarks/LibcBenchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace libc_benchmarks {
1515

1616
void checkRequirements() {
1717
const auto &CpuInfo = benchmark::CPUInfo::Get();
18-
if (CpuInfo.scaling_enabled)
18+
if (CpuInfo.scaling == benchmark::CPUInfo::ENABLED)
1919
report_fatal_error(
2020
"CPU scaling is enabled, the benchmark real time measurements may be "
2121
"noisy and will incur extra overhead.");

libcxx/benchmarks/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ExternalProject_Add(google-benchmark-libcxx
4141
EXCLUDE_FROM_ALL ON
4242
DEPENDS cxx cxx-headers
4343
PREFIX benchmark-libcxx
44-
SOURCE_DIR ${LIBCXX_SOURCE_DIR}/utils/google-benchmark
44+
SOURCE_DIR ${LLVM_THIRD_PARTY_DIR}/benchmark
4545
INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/benchmark-libcxx
4646
CMAKE_CACHE_ARGS
4747
-DCMAKE_C_COMPILER:STRING=${CMAKE_C_COMPILER}
@@ -66,7 +66,7 @@ if (LIBCXX_BENCHMARK_NATIVE_STDLIB)
6666
ExternalProject_Add(google-benchmark-native
6767
EXCLUDE_FROM_ALL ON
6868
PREFIX benchmark-native
69-
SOURCE_DIR ${LIBCXX_SOURCE_DIR}/utils/google-benchmark
69+
SOURCE_DIR ${LLVM_THIRD_PARTY_DIR}/benchmark
7070
INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/benchmark-native
7171
CMAKE_CACHE_ARGS
7272
-DCMAKE_C_COMPILER:STRING=${CMAKE_C_COMPILER}

libcxx/utils/google-benchmark/.clang-format

Lines changed: 0 additions & 5 deletions
This file was deleted.

libcxx/utils/google-benchmark/.github/.libcxx-setup.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

libcxx/utils/google-benchmark/.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

libcxx/utils/google-benchmark/.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

libcxx/utils/google-benchmark/.github/workflows/bazel.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

libcxx/utils/google-benchmark/.github/workflows/build-and-test-perfcounters.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

libcxx/utils/google-benchmark/.github/workflows/build-and-test.yml

Lines changed: 0 additions & 110 deletions
This file was deleted.

libcxx/utils/google-benchmark/.github/workflows/pylint.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)