/*
- * 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. */
/**
* 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);
/**
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
*/