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

Clement Courbet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 30 01:24:35 PST 2020


courbet updated this revision to Diff 241368.
courbet added a comment.

Remove FIXME as per the explanations from GGanesh at .


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,13 @@
   ];
 }
 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>;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72032.241368.patch
Type: text/x-patch
Size: 662 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200130/ce594780/attachment.bin>


More information about the llvm-commits mailing list