irop_flag_constlike flag and is_op_constlike() function added
[libfirm] / testprograms / if_while_example.c
index 50758d2..433758c 100644 (file)
@@ -97,7 +97,7 @@ main(void)
   add_immBlock_pred (r, x);
   x = new_Cond (new_Proj(new_Cmp(new_Const (mode_Iu, new_tarval_from_long (0, mode_Is)),
                                  new_Const (mode_Iu, 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);
 
@@ -132,7 +132,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");
 
@@ -146,7 +146,7 @@ main(void)
 
   /* output the vcg file */
   printf("Done building the graph.  Dumping it with out-edges.\n");
-  dump_out_edges();
+  dump_out_edges(1);
   dump_ir_graph (irg, 0);
   printf("Use xvcg to view this graph:\n");
   printf("/ben/goetz/bin/xvcg GRAPHNAME\n\n");