[llvm-exegesis] Add option to check the hardware support for a given feature before...
authorVy Nguyen <vyng@google.com>
Tue, 4 Aug 2020 22:34:22 +0000 (18:34 -0400)
committerVy Nguyen <vyng@google.com>
Wed, 30 Sep 2020 16:25:59 +0000 (12:25 -0400)
commit4fcd1a8e6528ca42fe656f2745e15d2b7f5de495
tree1b012faacda17e336c2828ab66c186d3ee8b6eb1
parentdd4fb7c8cfe394a3290bd19a1eac03435472ccfa
[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
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