1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[llvm-exegesis] Add pfm counters for Zen2 (znver2).

Summary: There are no counters for individual ports, but this is already
enough to find a lot of issues in the current model (upcoming patch).

Reviewers: dblaikie, gchatelet

Subscribers: hiraditya, tschuett, RKSimon, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72032
This commit is contained in:
Clement Courbet 2019-12-31 11:28:40 +01:00
parent c7ca050389
commit 290c00761d

View File

@ -223,3 +223,13 @@ def ZnVer1PfmCounters : ProcPfmCounters {
];
}
def : PfmCountersBinding<"znver1", ZnVer1PfmCounters>;
def ZnVer2PfmCounters : ProcPfmCounters {
let CycleCounter = PfmCounter<"cycles_not_in_halt">;
let UopsCounter = PfmCounter<"retired_uops">;
let IssueCounters = [
PfmIssueCounter<"Zn2AGU", "ls_dispatch:ld_dispatch + ls_dispatch:store_dispatch">,
PfmIssueCounter<"Zn2Divider", "div_op_count">
];
}
def : PfmCountersBinding<"znver2", ZnVer2PfmCounters>;