OSDN Git Service

[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)
commit3fc11a82d18392145c2d4d44218f36e984335b74
tree732fee130c03f77c88ae40270c81b4096972c4fd
parent2a87571b0885b5fbd27ed9e4aa6979ad9f5ae173
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336099 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-exegesis/lib/Latency.cpp
tools/llvm-exegesis/lib/Latency.h
tools/llvm-exegesis/llvm-exegesis.cpp