Added if conversion
[libfirm] / ir / opt / ifconv.h
1
2 /**
3  * If conversion.
4  * @author Sebastian Hack
5  * @date 10.2.2005
6  */
7
8 #ifndef _FIRM_IF_CONV_H
9 #define _FIRM_IF_CONV_H
10
11 /**
12  * The parameters structure.
13  */
14 typedef struct _opt_if_conv_info_t {
15         int max_depth;          /**< The maximum depth up to which expressions
16                                                                                         are examined when it has to be decided if they
17                                                                                         can be placed into another block. */
18 } opt_if_conv_info_t;
19
20
21 /**
22  * Perform If conversion on a graph.
23  * @param irg The graph.
24  * @param params The parameters for the if conversion.
25  */
26 void opt_if_conv(ir_graph *irg, opt_if_conv_info_t *params);
27
28 #endif