MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / ReorderBasicBlocksInStructuredOrder

Method ReorderBasicBlocksInStructuredOrder

source/opt/function.cpp:276–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void 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

Callers 2

FixBlockOrderMethod · 0.80
TESTFunction · 0.80

Calls 6

getMethod · 0.80
contextMethod · 0.45
cfgMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.64