enhanced dumper: dumps yet Bad blocks in local-const mode.
[libfirm] / ir / external / pseudo_irg.h
1
2 #include "entity.h"
3 #include "irgraph.h"
4
5
6 /** Create a new ir graph to build a pseudo representation of a procedure.
7  *
8  *  The pseudo representation can only be used for analyses.  It may not be
9  *  optimized.  Pseudo graphs are kept in a separate graph list in irprog.
10  */
11 ir_graph *new_pseudo_ir_graph(entity *ent, int n_loc);
12
13 /** Returns true ir ir_graph is pseudo graph.
14  *  Is irg a pseudo graph for analysis? */
15 int      is_pseudo_ir_graph(ir_graph *irg);
16
17 /** Returns the number of pseudo graphs in the program. */
18 int get_irp_n_pseudo_irgs(void);
19
20 /** Returns the number of pseudo graphs in the program. */
21 ir_graph *get_irp_pseudo_irg(int pos);
22
23
24 /** If set, get_irp_n_irgs and get_irp_irg behave as if all pseudo
25     graphs are in the irg list. If not set, get_entity_irg returns
26     NULL if the entity refers to a pseudo irg. */
27 void set_visit_pseudo_irgs(int x);
28 int  get_visit_pseudo_irgs(void);