[clang] [Coverage] Introduce `getBranchCounterPair()`. NFC. (PR #112702)

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 7 23:06:47 PST 2025


================
@@ -938,6 +938,37 @@ struct CounterCoverageMappingBuilder
     return Counter::getCounter(CounterMap[S]);
   }
 
+  struct BranchCounterPair {
----------------
chapuni wrote:

I wrote similar comments (from codegen side) in #112724 and I wanted to leave this side self-descriptive. I will try reassembling the comment.

I thought covmap counter and codegen perf counter could be unified but I guess it would be too greater work to me.

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


More information about the cfe-commits mailing list