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

Method UpdateLoopMergeInst

source/opt/loop_descriptor.h:79–84  ·  view source on GitHub ↗

Updates the OpLoopMerge instruction to reflect the current state of the loop.

Source from the content-addressed store, hash-verified

77 // Updates the OpLoopMerge instruction to reflect the current state of the
78 // loop.
79 inline void UpdateLoopMergeInst() {
80 assert(GetHeaderBlock()->GetLoopMergeInst() &&
81 "The loop is not structured");
82 Instruction* merge_inst = GetHeaderBlock()->GetLoopMergeInst();
83 merge_inst->SetInOperand(0, {GetMergeBlock()->id()});
84 }
85
86 // Returns the continue target basic block. This is the block designated as
87 // the continue target by the OpLoopMerge instruction.

Callers 1

SplitLoopMethod · 0.80

Calls 3

GetLoopMergeInstMethod · 0.80
SetInOperandMethod · 0.80
idMethod · 0.45

Tested by

no test coverage detected