Lines Matching full:regions
29 for (UniqueCodeRegion &Region : Regions) in addInstruction()
36 Regions.emplace_back(std::make_unique<CodeRegion>("", SMLoc())); in AnalysisRegions()
43 if (Regions.size() == 1 && !Regions[0]->startLoc().isValid() && in beginRegion()
44 !Regions[0]->endLoc().isValid()) { in beginRegion()
46 Regions[0] = std::make_unique<CodeRegion>(Description, Loc); in beginRegion()
52 const CodeRegion &R = *Regions[It->second]; in beginRegion()
55 "found multiple overlapping anonymous regions"); in beginRegion()
63 "overlapping regions cannot have the same name"); in beginRegion()
71 ActiveRegions[Description] = Regions.size(); in beginRegion()
72 Regions.emplace_back(std::make_unique<CodeRegion>(Description, Loc)); in beginRegion()
83 Regions[It->second]->setEndLocation(Loc); in endRegion()
89 if (ActiveRegions.empty() && Regions.size() == 1 && in endRegion()
90 !Regions[0]->startLoc().isValid() && !Regions[0]->endLoc().isValid()) { in endRegion()
91 Regions[0]->setEndLocation(Loc); in endRegion()
98 Regions[It->second]->setEndLocation(Loc); in endRegion()
121 "anonymous instrumentation regions are not permitted"); in beginRegion()
128 const CodeRegion &R = *Regions[It->second]; in beginRegion()
131 "overlapping instrumentation regions cannot be of the same kind"); in beginRegion()
139 ActiveRegions[Description] = Regions.size(); in beginRegion()
140 Regions.emplace_back( in beginRegion()
147 Regions[It->second]->setEndLocation(Loc); in endRegion()
165 for (auto &R : Regions) { in getActiveInstruments()