Added get_irn_edge()
[libfirm] / ir / ir / iredges.h
index 5f2b11d..90e618a 100644 (file)
@@ -72,11 +72,21 @@ int get_irn_n_edges(const ir_node *irn);
 
 /**
  * Get the position of an edge.
- * @param edge.
+ * @param edge The edge.
  * @return The position in the in array of that edges source.
  */
 extern int get_edge_src_pos(const ir_edge_t *edge);
 
+/**
+ * Get the edge object of an outgoing edge at a node.
+ * @param   irg The graph, the node is in.
+ * @param   irn The node at which the edge originates.
+ * @param   pos The position of the edge.
+ * @return      The corresponding edge object or NULL,
+ *              if no such edge exists.
+ */
+const ir_edge_t *get_irn_edge(ir_graph *irg, const ir_node *irn, int pos);
+
 /**
  * Check, if the out edges are activated.
  * @param irg The graph.