| 274 | } |
| 275 | |
| 276 | void Function::ReorderBasicBlocksInStructuredOrder() { |
| 277 | std::list<BasicBlock*> order; |
| 278 | IRContext* context = this->def_inst_->context(); |
| 279 | context->cfg()->ComputeStructuredOrder(this, blocks_[0].get(), &order); |
| 280 | ReorderBasicBlocks(order.begin(), order.end()); |
| 281 | } |
| 282 | |
| 283 | } // namespace opt |
| 284 | } // namespace spvtools |