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

Method ComputeLoopOrderedBlocks

source/opt/loop_unroller.cpp:979–982  ·  view source on GitHub ↗

Generate the ordered list of basic blocks in the |loop| and cache it for later use.

Source from the content-addressed store, hash-verified

977// Generate the ordered list of basic blocks in the |loop| and cache it for
978// later use.
979void LoopUnrollerUtilsImpl::ComputeLoopOrderedBlocks(Loop* loop) {
980 loop_blocks_inorder_.clear();
981 loop->ComputeLoopStructuredOrder(&loop_blocks_inorder_);
982}
983
984// Adds the blocks_to_add_ to both the loop and to the parent.
985void LoopUnrollerUtilsImpl::AddBlocksToLoop(Loop* loop) const {

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45

Tested by

no test coverage detected