16 size_t depth()
const {
return depth_; }
18 const auto&
children()
const {
return children_; }
24 parent->children_.emplace_back(
this);
31 std::vector<DepNode*> children_;
40 , root_(
std::make_unique<
DepNode>(nullptr, 0)) {
53 static void adjust_depth(
DepNode* node,
size_t depth);
56 std::unique_ptr<DepNode> root_;
59 std::deque<DepNode*> stack_;
const auto & children() const
DepNode(Def *mut, size_t depth)
const DepNode * mut2node(Def *mut) const
const DepNode * root() const
bool depends(Def *a, Def *b) const
Does a depend on b?
The World represents the whole program and manages creation of MimIR nodes (Defs).
GIDSet< const Var * > VarSet
GIDMap< const Def *, To > DefMap
GIDMap< Def *, To > MutMap