Lines Matching refs:SubRegion
340 void Region::addSubRegion(Region *SubRegion, bool moveChildren) { in addSubRegion() argument
341 assert(!SubRegion->parent && "SubRegion already has a parent!"); in addSubRegion()
343 return R.get() == SubRegion; in addSubRegion()
347 SubRegion->parent = this; in addSubRegion()
348 children.push_back(std::unique_ptr<Region>(SubRegion)); in addSubRegion()
353 assert(SubRegion->children.size() == 0 in addSubRegion()
360 if (SubRegion->contains(BB)) in addSubRegion()
361 RI->setRegionFor(BB, SubRegion); in addSubRegion()
366 if (SubRegion->contains(I->get()) && I->get() != SubRegion) { in addSubRegion()
367 (*I)->parent = SubRegion; in addSubRegion()
368 SubRegion->children.push_back(std::move(*I)); in addSubRegion()