[all-commits] [llvm/llvm-project] d22805: [llvm-exegesis] Refactor common parts out of Funct...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Fri Apr 14 00:38:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d22805940a8ba42f6ff3b1cd2e549e9d54e40248
      https://github.com/llvm/llvm-project/commit/d22805940a8ba42f6ff3b1cd2e549e9d54e40248
  Author: Aiden Grossman <agrossman154 at yahoo.com>
  Date:   2023-04-14 (Fri, 14 Apr 2023)

  Changed paths:
    M llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
    M llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h

  Log Message:
  -----------
  [llvm-exegesis] Refactor common parts out of FunctionExecutorImpl

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.

Reviewed By: gchatelet

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




More information about the All-commits mailing list