OSDN Git Service

[llvm-exegesis][NFC] Add a way to declare the default counter binding for unbound...
authorClement Courbet <courbet@google.com>
Fri, 9 Nov 2018 13:15:32 +0000 (13:15 +0000)
committerClement Courbet <courbet@google.com>
Fri, 9 Nov 2018 13:15:32 +0000 (13:15 +0000)
commitb4abfc2b2639f1b03c4c50c827a98684d96980ec
treeaa2a5d3cde46c3a724af0e0b82ab967b6db9457e
parent25761c3f2ce5c9890fde0cc891d462addd5cdabd
[llvm-exegesis][NFC] Add a way to declare the default counter binding for unbound CPUs for a target.

Summary:
This simplifies the code and moves everything to tablegen for consistency. This
also prepares the ground for adding issue counters.

Reviewers: gchatelet, john.brawn, jsji

Subscribers: nemanjai, mgorny, javed.absar, kbarton, tschuett, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346489 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
include/llvm/Target/TargetPfmCounters.td
lib/Target/AArch64/AArch64.td
lib/Target/AArch64/AArch64PfmCounters.td [new file with mode: 0644]
lib/Target/AArch64/CMakeLists.txt
lib/Target/PowerPC/CMakeLists.txt
lib/Target/PowerPC/PPC.td
lib/Target/PowerPC/PPCPfmCounters.td [new file with mode: 0644]
lib/Target/X86/X86PfmCounters.td
tools/llvm-exegesis/lib/AArch64/Target.cpp
tools/llvm-exegesis/lib/Latency.cpp
tools/llvm-exegesis/lib/Latency.h
tools/llvm-exegesis/lib/PowerPC/Target.cpp
tools/llvm-exegesis/lib/Target.cpp
unittests/tools/llvm-exegesis/AArch64/TargetTest.cpp
unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp
utils/TableGen/ExegesisEmitter.cpp