Adds |nested| as a nested loop of this loop. Automatically register |this| as the parent of |nested|.
| 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_; } |
no test coverage detected