Add is_cdep_on
[libfirm] / ir / ana / irbackedge_t.h
index cfabf35..4aee093 100644 (file)
@@ -1,13 +1,33 @@
+/*
+ * Project:     libFIRM
+ * File name:   ir/ana/irbackedge_t.h
+ * Purpose:     Access function for backedges -- private header.
+ * Author:      Goetz Lindenmaier
+ * Modified by:
+ * Created:     7.2002
+ * CVS-ID:      $Id$
+ * Copyright:   (c) 2002-2003 Universität Karlsruhe
+ * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
+ */
+
 #ifndef _IRBACKEDGE_T_H_
 #define _IRBACKEDGE_T_H_
 
-# include "string.h"
+/**
+ * Allocate a new backedge array on the obstack for given size.
+ */
+int *new_backedge_arr(struct obstack *obst, int size);
 
-static INLINE int * new_backedge_arr(struct obstack *obst, int size) {
-  int *res = NEW_ARR_D (int, obst, size);
-  memset(res, 0, sizeof(int) * size);
-  return res;
-}
+/**
+ * allocate new backedge info for nodes.
+ */
+void new_backedge_info(ir_node *n);
 
+/**
+ * Adapts backedges array to new size.
+ * Must be called if in array of irnode is changed.  Else
+ * Segmentation faults might occur.
+ */
+void fix_backedges(struct obstack *obst, ir_node *n);
 
 #endif /* _IRBACKEDGE_T_H_ */