[PATCH] D72032: [llvm-exegesis] Add pfm counters for Zen2 (znver2).
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 04:25:52 PST 2020
courbet updated this revision to Diff 239543.
courbet marked an inline comment as done.
courbet added a comment.
fix typo
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72032/new/
https://reviews.llvm.org/D72032
Files:
llvm/lib/Target/X86/X86PfmCounters.td
Index: llvm/lib/Target/X86/X86PfmCounters.td
===================================================================
--- llvm/lib/Target/X86/X86PfmCounters.td
+++ llvm/lib/Target/X86/X86PfmCounters.td
@@ -223,3 +223,15 @@
];
}
def : PfmCountersBinding<"znver1", ZnVer1PfmCounters>;
+
+def ZnVer2PfmCounters : ProcPfmCounters {
+ let CycleCounter = PfmCounter<"cycles_not_in_halt">;
+ let UopsCounter = PfmCounter<"retired_uops">;
+ let IssueCounters = [
+ // FIXME: In the current model, all three AGUs are considered the same,
+ // but only two are supposed to be able to compute load addresses.
+ PfmIssueCounter<"Zn2AGU", "ls_dispatch:ld_dispatch + ls_dispatch:store_dispatch">,
+ PfmIssueCounter<"Zn2Divider", "div_op_count">
+ ];
+}
+def : PfmCountersBinding<"znver2", ZnVer2PfmCounters>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72032.239543.patch
Type: text/x-patch
Size: 811 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200122/afc85645/attachment.bin>
More information about the llvm-commits
mailing list