[all-commits] [llvm/llvm-project] c1a155: [llvm-exegesis] Refactor BenchmarkMeasure instanti...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Fri Jan 26 17:02:55 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1a155bf785152abc72b77608261a3d0e6c776a6
      https://github.com/llvm/llvm-project/commit/c1a155bf785152abc72b77608261a3d0e6c776a6
  Author: Aiden Grossman <agrossman154 at yahoo.com>
  Date:   2024-01-26 (Fri, 26 Jan 2024)

  Changed paths:
    M llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp
    M llvm/unittests/tools/llvm-exegesis/Mips/BenchmarkResultTest.cpp
    M llvm/unittests/tools/llvm-exegesis/X86/BenchmarkResultTest.cpp

  Log Message:
  -----------
  [llvm-exegesis] Refactor BenchmarkMeasure instantiation in tests

This patch refactors the instantiation of BenchmarkMeasure within all
the unit tests to use BenchmarkMeasure::Create rather than through
direct struct instantialization. This allows us to change what values
are stored in BenchmarkMeasure without getting compiler warnings on
every instantiation in the unit tests, and is also just a cleanup in
general as the Create function didn't seem to exist at the time the unit
tests were originally written.




More information about the All-commits mailing list