* @author Sebastian Hack
* @date 14.1.2005
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "irnode_t.h"
#include "iredges_t.h"
static firm_dbg_module_t *dbg;
+#if FIRM_EDGES_INPLACE
+
#define TIMES37(x) (((x) << 5) + ((x) << 2) + (x))
#define get_irn_out_list_head(irn) (&get_irn_out_info(irn)->outs)
if(e != NULL)
e->present = 1;
else
- ir_fprintf(stderr, "edge %n,%d is missing\n", irn, templ.pos);
+ DBG((dbg, LEVEL_DEFAULT, "edge %n,%d is missing\n", irn, templ.pos));
}
}
foreach_out_edge(irn, e) {
ir_node *tgt = get_irn_n(e->src, e->pos);
if(irn != tgt)
- ir_fprintf(stderr, "edge %n,%d is no out edge of %n but of %n\n",
- e->src, e->pos, irn, tgt);
+ DBG((dbg, LEVEL_DEFAULT, "edge %n,%d is no out edge of %n but of %n\n",
+ e->src, e->pos, irn, tgt));
}
}
*/
for(e = set_first(edges); e; e = set_next(edges)) {
if(!e->invalid && !e->present)
- ir_fprintf(stderr, "edge %n,%d is superfluous\n", e->src, e->pos);
+ DBG((dbg, LEVEL_DEFAULT, "edge %n,%d is superfluous\n", e->src, e->pos));
}
}
{
return _get_edge_src_pos(edge);
}
+
+#endif /* FIRM_EDGES_INPLACE */