-#ifndef CDEP_H
-#define CDEP_H
-
-#include "irnode.h"
+/*
+ * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
+ *
+ * This file is part of libFirm.
+ *
+ * This file may be distributed and/or modified under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation and appearing in the file LICENSE.GPL included in the
+ * packaging of this file.
+ *
+ * Licensees holding valid libFirm Professional Edition licenses may use
+ * this file in accordance with the libFirm Commercial License.
+ * Agreement provided with the Software.
+ *
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
+ */
+
+/**
+ * @file
+ * @brief control dependence analysis
+ * @author Chrsitoph Mallon
+ * @version $Id$
+ */
+#ifndef FIRM_ANA_CDEP_H
+#define FIRM_ANA_CDEP_H
+
+#include "firm_types.h"
typedef struct cdep cdep;
struct cdep {
- ir_node* node;
- cdep* next;
+ ir_node *node;
+ cdep *next;
};
-void compute_cdep(ir_graph*);
-void free_cdep(ir_graph*);
+/** Compute the control dependence graph for a graph. */
+void compute_cdep(ir_graph *irg);
+void free_cdep(ir_graph *irg);
-cdep* find_cdep(const ir_node* block);
+cdep *find_cdep(const ir_node *block);
-void exchange_cdep(ir_node* old, const ir_node* new);
+void exchange_cdep(ir_node *old, const ir_node *nw);
-int is_cdep_on(const ir_node* dependee, const ir_node* candidate);
+int is_cdep_on(const ir_node *dependee, const ir_node *candidate);
-int is_iterated_cdep_on(ir_node* dependee, ir_node* candidate);
+int is_iterated_cdep_on(ir_node *dependee, ir_node *candidate);
-ir_node* get_unique_cdep(const ir_node* block);
-int has_multiple_cdep(const ir_node* block);
+ir_node *get_unique_cdep(const ir_node *block);
+int has_multiple_cdep(const ir_node *block);
#endif