Skip to content

Commit 2f00281

Browse files
committed
[libc] Fix Memory Benchmarks code after rename
Differential Revision: https://reviews.llvm.org/D107376
1 parent 30fbb06 commit 2f00281

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libc/benchmarks/LibcMemoryBenchmarkMain.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@ static cl::opt<uint32_t>
6666

6767
#if defined(LIBC_BENCHMARK_FUNCTION_MEMCPY)
6868
#define LIBC_BENCHMARK_FUNCTION LIBC_BENCHMARK_FUNCTION_MEMCPY
69-
using BenchmarkHarness = CopyHarness;
69+
using BenchmarkSetup = CopySetup;
7070
#elif defined(LIBC_BENCHMARK_FUNCTION_MEMSET)
7171
#define LIBC_BENCHMARK_FUNCTION LIBC_BENCHMARK_FUNCTION_MEMSET
72-
using BenchmarkHarness = SetHarness;
72+
using BenchmarkSetup = SetSetup;
7373
#elif defined(LIBC_BENCHMARK_FUNCTION_BZERO)
7474
#define LIBC_BENCHMARK_FUNCTION LIBC_BENCHMARK_FUNCTION_BZERO
75-
using BenchmarkHarness = SetHarness;
75+
using BenchmarkSetup = SetSetup;
7676
#elif defined(LIBC_BENCHMARK_FUNCTION_MEMCMP)
7777
#define LIBC_BENCHMARK_FUNCTION LIBC_BENCHMARK_FUNCTION_MEMCMP
78-
using BenchmarkHarness = ComparisonHarness;
78+
using BenchmarkSetup = ComparisonSetup;
7979
#else
8080
#error "Missing LIBC_BENCHMARK_FUNCTION_XXX definition"
8181
#endif
8282

83-
struct MemfunctionBenchmarkBase : public BenchmarkHarness {
83+
struct MemfunctionBenchmarkBase : public BenchmarkSetup {
8484
MemfunctionBenchmarkBase() : ReportProgress(isatty(fileno(stdout))) {}
8585
virtual ~MemfunctionBenchmarkBase() {}
8686

@@ -95,7 +95,7 @@ struct MemfunctionBenchmarkBase : public BenchmarkHarness {
9595
protected:
9696
Study createStudy() {
9797
Study Study;
98-
// Harness study.
98+
// Setup study.
9999
Study.StudyName = StudyName;
100100
Runtime &RI = Study.Runtime;
101101
RI.Host = HostState::get();
@@ -255,7 +255,7 @@ void main() {
255255
Benchmark.reset(new MemfunctionBenchmarkSweep());
256256
else
257257
Benchmark.reset(new MemfunctionBenchmarkDistribution(getDistributionOrDie(
258-
BenchmarkHarness::Distributions, SizeDistributionName)));
258+
BenchmarkSetup::getDistributions(), SizeDistributionName)));
259259
writeStudy(Benchmark->run());
260260
}
261261

0 commit comments

Comments
 (0)