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

Method AddNestedLoop

source/opt/loop_descriptor.h:170–174  ·  view source on GitHub ↗

Adds |nested| as a nested loop of this loop. Automatically register |this| as the parent of |nested|.

Source from the content-addressed store, hash-verified

168 // Adds |nested| as a nested loop of this loop. Automatically register |this|
169 // as the parent of |nested|.
170 inline void AddNestedLoop(Loop* nested) {
171 assert(!nested->GetParent() && "The loop has another parent.");
172 nested_loops_.push_back(nested);
173 nested->SetParent(this);
174 }
175
176 inline Loop* GetParent() { return parent_; }
177 inline const Loop* GetParent() const { return parent_; }

Callers 4

PopulateLoopNestMethod · 0.80
FuseMethod · 0.80
PopulateListMethod · 0.80

Calls 3

GetParentMethod · 0.45
push_backMethod · 0.45
SetParentMethod · 0.45

Tested by

no test coverage detected