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

Method RemoveChildLoop

source/opt/loop_descriptor.h:269–273  ·  view source on GitHub ↗

Remove the child loop form this loop.

Source from the content-addressed store, hash-verified

267
268 // Remove the child loop form this loop.
269 inline void RemoveChildLoop(Loop* loop) {
270 nested_loops_.erase(
271 std::find(nested_loops_.begin(), nested_loops_.end(), loop));
272 loop->SetParent(nullptr);
273 }
274
275 // Mark this loop to be removed later by a call to
276 // LoopDescriptor::PostModificationCleanup.

Callers 2

FuseMethod · 0.80

Calls 5

findFunction · 0.85
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
SetParentMethod · 0.45

Tested by

no test coverage detected