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

Method CloneLoop

source/opt/loop_utils.cpp:509–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509Loop* LoopUtils::CloneLoop(LoopCloningResult* cloning_result) const {
510 // Compute the structured order of the loop basic blocks and store it in the
511 // vector ordered_loop_blocks.
512 std::vector<BasicBlock*> ordered_loop_blocks;
513 loop_->ComputeLoopStructuredOrder(&ordered_loop_blocks);
514
515 // Clone the loop.
516 return CloneLoop(cloning_result, ordered_loop_blocks);
517}
518
519Loop* LoopUtils::CloneAndAttachLoopToHeader(LoopCloningResult* cloning_result) {
520 // Clone the loop.

Callers 2

PerformUnswitchMethod · 0.80

Calls 15

GetLabelInstMethod · 0.80
AnalyzeInstDefMethod · 0.80
set_instr_blockMethod · 0.80
emplace_backMethod · 0.80
HasResultIdMethod · 0.80
getMethod · 0.80
ForEachInIdMethod · 0.80
AnalyzeInstUseMethod · 0.80
get_def_use_mgrMethod · 0.45
cfgMethod · 0.45
CloneMethod · 0.45

Tested by

no test coverage detected