[llvm-exegesis] Check counters before running
authorMiloš Stojanović <Milos.Stojanovic@rt-rk.com>
Tue, 31 Dec 2019 13:14:41 +0000 (14:14 +0100)
committerMiloš Stojanović <Milos.Stojanovic@rt-rk.com>
Tue, 31 Dec 2019 13:17:24 +0000 (14:17 +0100)
commitc7dc4734d23f45f576ba5af2aae5be9dfa2d3643
tree8ac0dc37838151e992078388ddc452c3fdd387d2
parentb409f73e1fd8e498a2bff4208eeadf023959a0f7
[llvm-exegesis] Check counters before running

Check if the appropriate counters for the specified mode are defined on
the target. This is checked before any other work is done.

Differential Revision: https://reviews.llvm.org/D71927
llvm/tools/llvm-exegesis/lib/Latency.cpp
llvm/tools/llvm-exegesis/lib/Target.cpp
llvm/tools/llvm-exegesis/llvm-exegesis.cpp