[llvm] Implement MCDCTVIdxBuilder (LLVM side) (PR #80676)

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 11 18:57:53 PST 2024


================
@@ -223,9 +223,127 @@ Expected<int64_t> CounterMappingContext::evaluate(const Counter &C) const {
   return LastPoppedValue;
 }
 
+MCDCTVIdxBuilder::MCDCTVIdxBuilder(
+    std::function<NodeIDs(bool TellSize)> Fetcher) {
+  // Build Nodes and set up each InCount
+  int MaxID = -1;
+  Nodes.resize(std::get<0>(Fetcher(true)));
+  while (true) {
----------------
chapuni wrote:

`Fetcher` is expected inside the loop.

Re: correlation between `ID1` and `ID`, see also #81257 


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


More information about the llvm-commits mailing list