still trying to fix irscc error
[libfirm] / ir / ana / irbackedge_t.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/ana/irbackedge_t.h
4  * Purpose:     Access function for backedges -- private header.
5  * Author:      Goetz Lindenmaier
6  * Modified by:
7  * Created:     7.2002
8  * CVS-ID:      $Id$
9  * Copyright:   (c) 2002-2003 Universität Karlsruhe
10  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
11  */
12
13 #ifndef _IRBACKEDGE_T_H_
14 #define _IRBACKEDGE_T_H_
15
16 # include <string.h>
17
18 static INLINE int * new_backedge_arr(struct obstack *obst, int size) {
19   int *res = NEW_ARR_D (int, obst, size);
20   memset(res, 0, sizeof(int) * size);
21   return res;
22 }
23
24 /* Adapts backedges array to new size.
25    Must be called if in array of irnode is changed.  Else
26    Segmentation faults might occur.  */
27 void fix_backedges(struct obstack *obst, ir_node *n);
28
29 #endif /* _IRBACKEDGE_T_H_ */