[libc-commits] [libc] 2f00281 - [libc] Fix Memory Benchmarks code after rename

Andre Vieira via libc-commits libc-commits at lists.llvm.org
Wed Aug 4 01:17:57 PDT 2021


Author: Andre Vieira
Date: 2021-08-04T09:17:12+01:00
New Revision: 2f002817fb462d01d26374015421a24fa2a5a676

URL: https://github.com/llvm/llvm-project/commit/2f002817fb462d01d26374015421a24fa2a5a676
DIFF: https://github.com/llvm/llvm-project/commit/2f002817fb462d01d26374015421a24fa2a5a676.diff

LOG: [libc] Fix Memory Benchmarks code after rename

Differential Revision: https://reviews.llvm.org/D107376

Added: 
    

Modified: 
    libc/benchmarks/LibcMemoryBenchmarkMain.cpp

Removed: 
    


################################################################################
diff  --git a/libc/benchmarks/LibcMemoryBenchmarkMain.cpp b/libc/benchmarks/LibcMemoryBenchmarkMain.cpp
index d7e1c1f425da7..30bbfd44cd9b6 100644
--- a/libc/benchmarks/LibcMemoryBenchmarkMain.cpp
+++ b/libc/benchmarks/LibcMemoryBenchmarkMain.cpp
@@ -66,21 +66,21 @@ static cl::opt<uint32_t>
 
 #if defined(LIBC_BENCHMARK_FUNCTION_MEMCPY)
 #define LIBC_BENCHMARK_FUNCTION LIBC_BENCHMARK_FUNCTION_MEMCPY
-using BenchmarkHarness = CopyHarness;
+using BenchmarkSetup = CopySetup;
 #elif defined(LIBC_BENCHMARK_FUNCTION_MEMSET)
 #define LIBC_BENCHMARK_FUNCTION LIBC_BENCHMARK_FUNCTION_MEMSET
-using BenchmarkHarness = SetHarness;
+using BenchmarkSetup = SetSetup;
 #elif defined(LIBC_BENCHMARK_FUNCTION_BZERO)
 #define LIBC_BENCHMARK_FUNCTION LIBC_BENCHMARK_FUNCTION_BZERO
-using BenchmarkHarness = SetHarness;
+using BenchmarkSetup = SetSetup;
 #elif defined(LIBC_BENCHMARK_FUNCTION_MEMCMP)
 #define LIBC_BENCHMARK_FUNCTION LIBC_BENCHMARK_FUNCTION_MEMCMP
-using BenchmarkHarness = ComparisonHarness;
+using BenchmarkSetup = ComparisonSetup;
 #else
 #error "Missing LIBC_BENCHMARK_FUNCTION_XXX definition"
 #endif
 
-struct MemfunctionBenchmarkBase : public BenchmarkHarness {
+struct MemfunctionBenchmarkBase : public BenchmarkSetup {
   MemfunctionBenchmarkBase() : ReportProgress(isatty(fileno(stdout))) {}
   virtual ~MemfunctionBenchmarkBase() {}
 
@@ -95,7 +95,7 @@ struct MemfunctionBenchmarkBase : public BenchmarkHarness {
 protected:
   Study createStudy() {
     Study Study;
-    // Harness study.
+    // Setup study.
     Study.StudyName = StudyName;
     Runtime &RI = Study.Runtime;
     RI.Host = HostState::get();
@@ -255,7 +255,7 @@ void main() {
     Benchmark.reset(new MemfunctionBenchmarkSweep());
   else
     Benchmark.reset(new MemfunctionBenchmarkDistribution(getDistributionOrDie(
-        BenchmarkHarness::Distributions, SizeDistributionName)));
+        BenchmarkSetup::getDistributions(), SizeDistributionName)));
   writeStudy(Benchmark->run());
 }
 


        


More information about the libc-commits mailing list