[llvm-exegesis] Delegate the decision of cycle counter name to the target
authorJohn Brawn <john.brawn@arm.com>
Mon, 2 Jul 2018 13:14:49 +0000 (13:14 +0000)
committerJohn Brawn <john.brawn@arm.com>
Mon, 2 Jul 2018 13:14:49 +0000 (13:14 +0000)
commit8fc5ec78d54df15de2908f16d55945da4b239613
tree3207fb729f648cea62fe6f002682f4eced05f586
parent4ebba909a209b93c1f0cb626412aa2687c0fb36d
[llvm-exegesis] Delegate the decision of cycle counter name to the target

Currently the cycle counter is taken from the subtarget schedule model, which
isn't any use if the subtarget doesn't have one. Delegate the decision to the
target benchmark runner, as it may know better what to do in that case, with
the default being the current behaviour.

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

llvm-svn: 336099
llvm/tools/llvm-exegesis/lib/Latency.cpp
llvm/tools/llvm-exegesis/lib/Latency.h
llvm/tools/llvm-exegesis/llvm-exegesis.cpp