Commit 7656a200 authored by Michael Beck's avatar Michael Beck
Browse files

add dumping hook

[r20631]
parent aa1341dd
......@@ -1123,6 +1123,14 @@ static void set_compute_functions(void) {
SET(End);
} /* set_compute_functions */
static int dump_partition_hook(FILE *F, ir_node *n, ir_node *local) {
ir_node *irn = local != NULL ? local : n;
node_t *node = get_irn_node(n);
ir_fprintf(F, "info2 : \"partition %u type %+F\"\n", node->part->nr, node->type);
return 1;
}
void combo(ir_graph *irg) {
environment_t env;
ir_node *start_bl, *initial_X;
......@@ -1180,6 +1188,10 @@ void combo(ir_graph *irg) {
dump_all_partitions(&env);
set_dump_node_vcgattr_hook(dump_partition_hook);
dump_ir_block_graph(irg, "-partition");
/* apply the result */
irg_walk_graph(irg, NULL, apply_result, &env);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment