Lines Matching refs:Regions
466 void buildSegmentsImpl(ArrayRef<CountedRegion> Regions) { in buildSegmentsImpl() argument
467 for (const auto &CR : enumerate(Regions)) { in buildSegmentsImpl()
489 (CR.index() + 1) == Regions.size() || in buildSegmentsImpl()
499 if (CR.index() + 1 == Regions.size() || in buildSegmentsImpl()
500 CurStartLoc != Regions[CR.index() + 1].startLoc()) { in buildSegmentsImpl()
516 static void sortNestedRegions(MutableArrayRef<CountedRegion> Regions) { in sortNestedRegions() argument
517 llvm::sort(Regions, [](const CountedRegion &LHS, const CountedRegion &RHS) { in sortNestedRegions()
539 combineRegions(MutableArrayRef<CountedRegion> Regions) { in combineRegions() argument
540 if (Regions.empty()) in combineRegions()
541 return Regions; in combineRegions()
542 auto Active = Regions.begin(); in combineRegions()
543 auto End = Regions.end(); in combineRegions()
544 for (auto I = Regions.begin() + 1; I != End; ++I) { in combineRegions()
568 return Regions.drop_back(std::distance(++Active, End)); in combineRegions()
574 buildSegments(MutableArrayRef<CountedRegion> Regions) { in buildSegments() argument
578 sortNestedRegions(Regions); in buildSegments()
579 ArrayRef<CountedRegion> CombinedRegions = combineRegions(Regions); in buildSegments()
659 std::vector<CountedRegion> Regions; in getCoverageForFile() local
671 Regions.push_back(CR); in getCoverageForFile()
678 FileCoverage.Segments = SegmentBuilder::buildSegments(Regions); in getCoverageForFile()
715 std::vector<CountedRegion> Regions; in getCoverageForFunction() local
718 Regions.push_back(CR); in getCoverageForFunction()
725 FunctionCoverage.Segments = SegmentBuilder::buildSegments(Regions); in getCoverageForFunction()
734 std::vector<CountedRegion> Regions; in getCoverageForExpansion() local
737 Regions.push_back(CR); in getCoverageForExpansion()
744 ExpansionCoverage.Segments = SegmentBuilder::buildSegments(Regions); in getCoverageForExpansion()