Lines Matching defs:region
45 void DominanceInfoBase<IsPostDom>::invalidate(Region *region) {
46 auto it = dominanceInfos.find(region);
53 /// Return the dom tree and "hasSSADominance" bit for the given region. The
57 auto DominanceInfoBase<IsPostDom>::getDominanceInfo(Region *region,
61 auto itAndInserted = dominanceInfos.insert({region, {nullptr, true}});
70 if (needsDomTree && !entry.getPointer() && !region->hasOneBlock()) {
72 domTree->recalculate(*region);
79 // region.
80 if (!region->hasOneBlock()) {
82 domTree->recalculate(*region);
89 if (Operation *parentOp = region->getParentOp()) {
95 entry.setInt(regionKindItf.hasSSADominance(region->getRegionNumber()));
111 /// user-defined traversal function for every pair of a region and block that
125 /// Tries to update the given block references to live in the same region by
128 // If both block do not live in the same region, we will have to check their
136 // `a`s ancestors are in the same region as `b`, then we stop early because we
148 // `b`s ancestors are in the same region as `a`, then we stop early because
176 // If they are at the same level, and have the same parent region then we
202 // Try to find blocks that are in the same region.
206 // If the common ancestor in a common region is the same block, then return
211 // Otherwise, there must be multiple blocks in the region, check the
216 /// Returns the given block iterator if it lies within the region region.
218 /// lies within the given region. Returns and "empty" iterator if the latter
225 // Case 1: The iterator lies within the region region.
260 // itself unless this is a graph region.
268 // Scoot up b's region tree until we find a location in A's region that
286 // Ok, they are in the same region now.
288 // Dominance changes based on the region type. In a region with SSA
305 /// its region.
308 // If this is the first block in its region, then it is obviously reachable.
309 Region *region = a->getParent();
310 if (®ion->front() == a)
313 // Otherwise this is some block in a multi-block region. Check DomTree.
314 return getDomTree(region).isReachableFromEntry(a);