Every node has now a pinned attribute that is inherited from the op.
[libfirm] / testprograms / endless_loop.c
index fa17092..2ee88de 100644 (file)
@@ -90,7 +90,7 @@ main(void)
   add_immBlock_pred (r, x);
   x = new_Cond (new_Proj(new_Cmp(new_Const (mode_Is, new_tarval_from_long (0, mode_Is)),
                  new_Const (mode_Is, new_tarval_from_long (0, mode_Is))),
-             mode_b, Eq));
+             mode_b, pn_Cmp_Eq));
   f = new_Proj (x, mode_X, 0);
   t = new_Proj (x, mode_X, 1);
 
@@ -135,7 +135,7 @@ main(void)
   add_immBlock_pred (get_irg_end_block(irg), x);
   mature_immBlock (get_irg_end_block(irg));
 
-  finalize_cons (irg);
+  irg_finalize_cons (irg);
 
   printf("Optimizing ...\n");
 
@@ -148,7 +148,7 @@ main(void)
   /* output the vcg file */
   printf("Done building the graph.  Dumping it.\n");
   /* turn_of_edge_labels(); */
-  dump_keepalive_edges(true);
+  dump_keepalive_edges(1);
   char *dump_file_suffix = "";
   dump_all_types(dump_file_suffix);
   dump_ir_block_graph (irg, dump_file_suffix);