This is an archive of the discontinued LLVM Phabricator instance.

[llvm-exegesis] Refactor common parts out of FunctionExecutorImpl
ClosedPublic

Authored by aidengrossman on Apr 12 2023, 2:05 AM.

Details

Summary

This patch refactors some code out of FunctionExecutorImpl into the base
class that should be common across all implementations of
FunctionExecutor. Particularly, this patch factors out
accumulateCounterValues, and also factors out runAndSample, moving
implementation specific code into a new runWithCounter function. This
makes adding new implementations of FunctinExecutor easier.

Diff Detail

Event Timeline

aidengrossman created this revision.Apr 12 2023, 2:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2023, 2:05 AM
Herald added a subscriber: mstojanovic. · View Herald Transcript
aidengrossman requested review of this revision.Apr 12 2023, 2:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2023, 2:05 AM
gchatelet accepted this revision.Apr 13 2023, 1:39 AM
gchatelet added inline comments.
llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h
96–97

The parameters should be named

This revision is now accepted and ready to land.Apr 13 2023, 1:39 AM
This revision was landed with ongoing or failed builds.Apr 14 2023, 12:38 AM
This revision was automatically updated to reflect the committed changes.