10 /** Undefine this to disable debugging mode. */
14 * Check, if a node produces or consumes a data value.
15 * If it does, it is significant for scheduling and register allocation.
16 * A node produces/consumes a data value, if one of its operands is of
17 * mode datab, or his retuning mode is of mode datab.
18 * @param irn The node to check for.
19 * @return 1, if the node is a data node, 0 if not.
21 static INLINE int is_data_node(const ir_node *irn)
25 /* If the node produces a data value, return immediately. */
26 if(mode_is_datab(get_irn_mode(irn)))
29 /* else check, if it takes a data value, if that is so, return */
30 for(i = 0, n = get_irn_arity(irn); i < n; ++i) {
31 ir_node *op = get_irn_n(irn, i);
32 if(mode_is_datab(get_irn_mode(op)))
36 /* Else the node does not produce/consume a data value */
41 * Make each constant local to its use.
42 * This duplicates all constants in order to simulate a realistic
44 * @param irg The graph.
46 void localize_consts(ir_graph *irg);
49 * Dump a vcg graph containing the controlflow graph, the schedule and
50 * allocated registers.
51 * @param irg The irg. Note that scheduling, register allocation must
52 * have been performed.
54 void dump_allocated_irg(ir_graph *irg, char *suffix);