Reland rG4fcd1a8e6528:[llvm-exegesis] Add option to check the hardware support for...
authorVy Nguyen <vyng@google.com>
Thu, 1 Oct 2020 16:12:34 +0000 (12:12 -0400)
committerVy Nguyen <vyng@google.com>
Thu, 1 Oct 2020 16:21:16 +0000 (12:21 -0400)
commitcb3fd715f324ff0f58dfeb7d08a88a05477cb0d5
treef95b5a34ab7a2b22f5a05dc1929b4e21b4814389
parent45698ac0052ae5b1c5beb739636396a5b7263966
Reland  rG4fcd1a8e6528:[llvm-exegesis] Add option to check the hardware support for a given feature before benchmarking.

This is mostly for the benefit of the LBR latency mode.
Right now, it performs no checking. If this is run on non-supported hardware, it will produce all zeroes for latency.

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

New change: Updated lit.local.cfg to use pass the right argument to llvm-exegesis to actually request the LBR mode.

Differential Revision: https://reviews.llvm.org/D88670
llvm/test/tools/llvm-exegesis/X86/lbr/lit.local.cfg
llvm/tools/llvm-exegesis/lib/Target.h
llvm/tools/llvm-exegesis/lib/X86/Target.cpp
llvm/tools/llvm-exegesis/lib/X86/X86Counter.cpp
llvm/tools/llvm-exegesis/lib/X86/X86Counter.h
llvm/tools/llvm-exegesis/llvm-exegesis.cpp