std::vector<InstructionBenchmark> InstrBenchmarks;
for (const BenchmarkCode &Conf : ConfigurationOrError.get())
- InstrBenchmarks.push_back(runConfiguration(Conf, Opcode, NumRepetitions));
+ InstrBenchmarks.push_back(runConfiguration(Conf, NumRepetitions));
return InstrBenchmarks;
}
}
InstructionBenchmark
-BenchmarkRunner::runConfiguration(const BenchmarkCode &BC, unsigned Opcode,
+BenchmarkRunner::runConfiguration(const BenchmarkCode &BC,
unsigned NumRepetitions) const {
InstructionBenchmark InstrBenchmark;
InstrBenchmark.Mode = Mode;
// Internal helpers.
InstructionBenchmark runConfiguration(const BenchmarkCode &Configuration,
- unsigned Opcode,
unsigned NumRepetitions) const;
// Calls generateCodeTemplate and expands it into one or more BenchmarkCode.