Clean up turn_back_am(), panic on unknown arity.
[libfirm] / include / libfirm / cdep.h
index 88bf802..c1edc73 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
 /**
  * An entry in the control dependence list.
  */
-typedef struct cdep cdep;
-struct cdep {
+struct ir_cdep {
        ir_node *node;  /**< A node on which the current block is control dependent on. */
-       cdep    *next;  /**< Link to the next one if any. */
+       ir_cdep    *next;  /**< Link to the next one if any. */
 };
 
 /** Compute the control dependence graph for a graph. */
@@ -46,8 +45,11 @@ void free_cdep(ir_graph *irg);
 /**
  * Return a list of all control dependences of a block.
  */
-cdep *find_cdep(const ir_node *block);
+ir_cdep *find_cdep(const ir_node *block);
 
+/**
+ * Replace the control dependence info of old by the info of nw.
+ */
 void exchange_cdep(ir_node *old, const ir_node *nw);
 
 /**
@@ -74,7 +76,7 @@ int is_iterated_cdep_on(ir_node *dependee, ir_node *candidate);
 ir_node *get_unique_cdep(const ir_node *block);
 
 /**
- * check if the given block is control dependent of more than one node.
+ * Check if the given block is control dependent of more than one node.
  *
  * @param block   the block to check
  */