private void RecurseDownTree(List <IRBlock> list, DominatorTreeNode node) { foreach (DominatorTreeNode descendant in node.GetDescendants()) { RecurseDownTree(list, descendant); } list.Add(node.GetBlock()); }
private static void printTree(DominatorTreeNode node) { Console.WriteLine("\n** Node " + node.GetBlock().GetIndex()); foreach (DominatorTreeNode desc in node.GetDescendants()) { Console.Write(desc.GetBlock().GetIndex() + ", "); } Console.WriteLine(); foreach (DominatorTreeNode desc in node.GetDescendants()) { printTree(desc); } }
private void RecurseDownTree(List<IRBlock> list, DominatorTreeNode node) { foreach(DominatorTreeNode descendant in node.GetDescendants()) { RecurseDownTree(list, descendant); } list.Add(node.GetBlock()); }
private static void printTree(DominatorTreeNode node) { Console.WriteLine("\n** Node " + node.GetBlock().GetIndex()); foreach (DominatorTreeNode desc in node.GetDescendants()) { Console.Write(desc.GetBlock().GetIndex() + ", "); } Console.WriteLine(); foreach (DominatorTreeNode desc in node.GetDescendants()) { printTree(desc); } }