[llvm-branch-commits] [llvm] [llvm-exegesis] Add tablegen support for validation counters (PR #76652)

Clement Courbet via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jan 5 04:06:13 PST 2024


================
@@ -59,6 +68,8 @@ struct PfmCountersInfo {
   const IssueCounter *IssueCounters;
   unsigned NumIssueCounters;
 
+  std::unordered_map<ValidationEvent, const char *> ValidationCounters;
----------------
legrosbuffle wrote:

`unordered_map` means that:

 - We'll allocate on startup.
 - We don't have consistent ordering between runs, which might be a source of debugging pain.

Can we use a sorted array of `pair<ValidationEvent, const char*>` instead ?

https://github.com/llvm/llvm-project/pull/76652


More information about the llvm-branch-commits mailing list