[llvm-exegesis][NFC] remove runAndMeasure
authorAiden Grossman <agrossman154@yahoo.com>
Fri, 14 Apr 2023 07:05:37 +0000 (07:05 +0000)
committerAiden Grossman <agrossman154@yahoo.com>
Fri, 14 Apr 2023 07:16:34 +0000 (07:16 +0000)
commit999a8b8ce92742911cc5ad16a279340931339efc
tree16a15e5844d596933493387110a46347f2d2d186
parent576c752410e71229f271ec7defb22f3596338c00
[llvm-exegesis][NFC] remove runAndMeasure

This completes the FIXME listed in FunctionExecutor in regards to
deprecating this function. It simply makes the appropriate call into
runAndSample and grabs the first counter value. This patch completely
removes the function, moving that logic into the callers (currently only
uopsBenchmarkRunner). This makes creating new FunctionExecutors easier
as an implementation no longer needs to worry about this detail.

Reviewed By: gchatelet

Differential Revision: https://reviews.llvm.org/D147878
llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h
llvm/tools/llvm-exegesis/lib/UopsBenchmarkRunner.cpp