cyclegraph: reformat, improve 'addRMWEdge' comments
authorBrian Norris <banorris@uci.edu>
Fri, 25 Jan 2013 01:29:58 +0000 (17:29 -0800)
committerBrian Norris <banorris@uci.edu>
Fri, 25 Jan 2013 01:29:58 +0000 (17:29 -0800)
Make it slightly clearer what this function's intent is. (It's only used
for the introduction of the first edge between 'from' and 'rmw' s.t.:

  from->is_write() && rmw->is_rmw() && from --rf-> rmw

cyclegraph.cc

index 62cef7c56079e2d2a46587a181340320a9fe0405..321436387c073bb221dc58206b8d7fd30b119c85 100644 (file)
@@ -92,10 +92,17 @@ void CycleGraph::addEdge(CycleNode *fromnode, CycleNode *tonode)
        }
 }
 
-/** Handles special case of a RMW action.  The ModelAction rmw reads
- *  from the ModelAction from.  The key differences are: (1) no write
- *  can occur in between the rmw and the from action.  Only one RMW
- *  action can read from a given write.
+/**
+ * @brief Add an edge between a write and the RMW which reads from it
+ *
+ * Handles special case of a RMW action, where the ModelAction rmw reads from
+ * the ModelAction from. The key differences are:
+ * (1) no write can occur in between the rmw and the from action.
+ * (2) Only one RMW action can read from a given write.
+ *
+ * @param from The edge comes from this ModelAction
+ * @param rmw The edge points to this ModelAction; this action must read from
+ * ModelAction from
  */
 void CycleGraph::addRMWEdge(const ModelAction *from, const ModelAction *rmw)
 {