OSDN Git Service

nv50/ir: add some comments on edge classification
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 19 Sep 2014 05:21:52 +0000 (01:21 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 26 Sep 2014 02:15:49 +0000 (22:15 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_graph.cpp

index 3f8d00a..23414d5 100644 (file)
@@ -336,6 +336,16 @@ IteratorRef Graph::safeIteratorCFG()
    return this->iteratorCFG();
 }
 
+/**
+ * Edge classification:
+ *
+ * We have a graph and want to classify the edges into one of four types:
+ * - TREE:    edges that belong to a spanning tree of the graph
+ * - FORWARD: edges from a node to a descendent in the spanning tree
+ * - BACK:    edges from a node to a parent (or itself) in the spanning tree
+ * - CROSS:   all other edges (because they cross between branches in the
+ *            spanning tree)
+ */
 void Graph::classifyEdges()
 {
    int seq;