Lines Matching full:region
1 //===- RegionPass.cpp - Region Pass and Region Pass Manager ---------------===//
10 // This file implements RegionPass and RGPassManager. All region optimization
39 static void addRegionIntoQueue(Region *R, std::deque<Region *> &RQ) {
41 for (Region::iterator I = R->begin(), E = R->end(); I != E; ++I)
66 for (std::deque<Region *>::const_iterator I = RQ.begin(), E = RQ.end();
68 Region *R = *I;
82 // Run all passes on the current Region.
106 // Manually check that this region is still healthy. This is done
109 // Region in the function every time. That level of checking can be
110 // enabled with the -verify-region-info option.
128 // Do not run other passes on this region.
132 // If the region was deleted, release all the region passes. This frees up
141 // Pop the region from queue after running all passes.
147 // Free all region nodes created in region passes.
157 // Print the region tree after all pass.
160 << " after all region Pass:\n";
170 errs().indent(Offset*2) << "Region Pass Manager\n";
196 virtual bool runOnRegion(Region *R, RGPassManager &RGM) {
198 for (Region::block_iterator I = R->block_begin(), E = R->block_end();
244 // Create new Region Pass Manager if it does not exist.
249 assert (!PMS.empty() && "Unable to create Region Pass Manager");
252 // [1] Create new Region Pass Manager