summaryrefslogtreecommitdiffhomepage
path: root/ir/ana/irbackedge_t.h
blob: 3bdf0f9c1863269e5798359b53d50fb9eddaab1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * This file is part of libFirm.
 * Copyright (C) 2012 University of Karlsruhe.
 */

/**
 * @file
 * @brief     Access function for backedges -- private header.
 * @author    Goetz Lindenmaier
 * @date      7.2002
 */
#ifndef FIRM_ANA_IRBACKEDGE_T_H
#define FIRM_ANA_IRBACKEDGE_T_H

#include "bitset.h"
#include "firm_types.h"

/**
 * Allocate a new backedge array on the obstack for given size.
 *
 * @param obst   the obstack to allocate the array on
 * @param size   the size of the backedge array
 */
bitset_t *new_backedge_arr(struct obstack *obst, size_t size);

/**
 * Adapts backedges array to new size.
 * Must be called if the in array of an IR node is changed.  Else
 * Segmentation faults might occur.
 */
void fix_backedges(struct obstack *obst, ir_node *n);

#endif