Searched refs:new_child (Results 1 – 3 of 3) sorted by relevance
42 bool DominatorTree::Node::TryAddChild(std::unique_ptr<Node> new_child) { in TryAddChild() argument43 CHECK(new_child->value_) << "cannot add a root or empty node as a child"; in TryAddChild()44 if (value_ && !Dominates(new_child.get())) { in TryAddChild()48 return AddChild(std::move(new_child)); in TryAddChild()51 bool DominatorTree::Node::AddChild(std::unique_ptr<Node> new_child) { in AddChild() argument55 if (new_child->Dominates(child.get())) { in AddChild()56 child->parent_ = new_child.get(); in AddChild()57 new_child->children_.push_back(std::move(child)); in AddChild()73 if (child->Dominates(new_child.get())) { in AddChild()74 child->AddChild(std::move(new_child)); in AddChild()[all …]
68 bool TryAddChild(std::unique_ptr<Node> new_child);71 bool AddChild(std::unique_ptr<Node> new_child);
109 def Set(self, parent, child_name, new_child): argument126 setattr(parent, child_name, new_child)