Skip to content

Commit

Permalink
Re-Reland "[benchmarks] Move libcxx's fork of google/benchmark and ll…
Browse files Browse the repository at this point in the history
…vm/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
  • Loading branch information
mtrofin committed Dec 8, 2021
1 parent 572d1ec commit 5dda2ef
Show file tree
Hide file tree
Showing 258 changed files with 10 additions and 14,958 deletions.
2 changes: 1 addition & 1 deletion libc/benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ string(REPLACE ";" " " GOOGLE_BENCHMARK_TARGET_FLAGS "${GOOGLE_BENCHMARK_TARGET_
ExternalProject_Add(google-benchmark
EXCLUDE_FROM_ALL ON
PREFIX google-benchmark
SOURCE_DIR ${LIBC_SOURCE_DIR}/../llvm/utils/benchmark
SOURCE_DIR ${LLVM_THIRD_PARTY_DIR}/benchmark
INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/google-benchmark
CMAKE_CACHE_ARGS
-DBUILD_SHARED_LIBS:BOOL=OFF
Expand Down
2 changes: 1 addition & 1 deletion libc/benchmarks/LibcBenchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace libc_benchmarks {

void checkRequirements() {
const auto &CpuInfo = benchmark::CPUInfo::Get();
if (CpuInfo.scaling_enabled)
if (CpuInfo.scaling == benchmark::CPUInfo::ENABLED)
report_fatal_error(
"CPU scaling is enabled, the benchmark real time measurements may be "
"noisy and will incur extra overhead.");
Expand Down
4 changes: 2 additions & 2 deletions libcxx/benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ExternalProject_Add(google-benchmark-libcxx
EXCLUDE_FROM_ALL ON
DEPENDS cxx cxx-headers
PREFIX benchmark-libcxx
SOURCE_DIR ${LIBCXX_SOURCE_DIR}/utils/google-benchmark
SOURCE_DIR ${LLVM_THIRD_PARTY_DIR}/benchmark
INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/benchmark-libcxx
CMAKE_CACHE_ARGS
-DCMAKE_C_COMPILER:STRING=${CMAKE_C_COMPILER}
Expand All @@ -66,7 +66,7 @@ if (LIBCXX_BENCHMARK_NATIVE_STDLIB)
ExternalProject_Add(google-benchmark-native
EXCLUDE_FROM_ALL ON
PREFIX benchmark-native
SOURCE_DIR ${LIBCXX_SOURCE_DIR}/utils/google-benchmark
SOURCE_DIR ${LLVM_THIRD_PARTY_DIR}/benchmark
INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/benchmark-native
CMAKE_CACHE_ARGS
-DCMAKE_C_COMPILER:STRING=${CMAKE_C_COMPILER}
Expand Down
5 changes: 0 additions & 5 deletions libcxx/utils/google-benchmark/.clang-format

This file was deleted.

24 changes: 0 additions & 24 deletions libcxx/utils/google-benchmark/.github/.libcxx-setup.sh

This file was deleted.

32 changes: 0 additions & 32 deletions libcxx/utils/google-benchmark/.github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

This file was deleted.

30 changes: 0 additions & 30 deletions libcxx/utils/google-benchmark/.github/workflows/bazel.yml

This file was deleted.

This file was deleted.

110 changes: 0 additions & 110 deletions libcxx/utils/google-benchmark/.github/workflows/build-and-test.yml

This file was deleted.

26 changes: 0 additions & 26 deletions libcxx/utils/google-benchmark/.github/workflows/pylint.yml

This file was deleted.

Loading

0 comments on commit 5dda2ef

Please sign in to comment.