X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Fstrength_red_example.c;h=48a2a8aec4135da44065c5aaed89d6d897dda674;hb=3cd42bbc9883e96a01a7f01de691d70602eb9a36;hp=9246f89a699dadb144c90e5caddbc28218bad006;hpb=6219b410795e1405d39c31ff2f075debb8adca0f;p=libfirm diff --git a/testprograms/strength_red_example.c b/testprograms/strength_red_example.c index 9246f89a6..48a2a8aec 100644 --- a/testprograms/strength_red_example.c +++ b/testprograms/strength_red_example.c @@ -88,17 +88,17 @@ static void function_begin(type *owner, type *mtp, char *fct_name, loop_dir_t lo ir_node *x, *t, *cmp; int start_value, end_value; - pnc_number cmp_dir; + pn_Cmp cmp_dir; if (loop_dir == loop_forward) { start_value = 0; end_value = 10; - cmp_dir = Gt; + cmp_dir = pn_Cmp_Gt; } else { start_value = 10; end_value = 0; - cmp_dir = Lt; + cmp_dir = pn_Cmp_Lt; } /* The entity for the procedure */ @@ -152,7 +152,6 @@ static void function_begin(type *owner, type *mtp, char *fct_name, loop_dir_t lo } int x; -static int y; /** * finishes a builded function. @@ -259,7 +258,7 @@ main(void) r1 = new_immBlock(); add_immBlock_pred(get_irg_current_block(irg), x); cmp = new_Cmp(new_Const_int(10), get_value(i_pos, mode_Is)); - x = new_Cond(new_Proj(cmp, mode_b, Gt)); + x = new_Cond(new_Proj(cmp, mode_b, pn_Cmp_Gt)); f = new_Proj(x, mode_X, 0); t = new_Proj(x, mode_X, 1); @@ -298,7 +297,7 @@ main(void) ir_node *b1 = new_Const_int(45); add_immBlock_pred(get_irg_current_block(irg), f); cmp = new_Cmp(new_Const_int(0), b1); - x = new_Cond (new_Proj(cmp, mode_b, Lt)); + x = new_Cond (new_Proj(cmp, mode_b, pn_Cmp_Lt)); f1 = new_Proj (x, mode_X, 0); t1 = new_Proj (x, mode_X, 1); @@ -454,7 +453,7 @@ main(void) for (i = 0; i < n_irgs; ++i) { current_ir_graph = get_irp_irg(i); irg_vrfy(current_ir_graph); - finalize_cons (current_ir_graph); + irg_finalize_cons (current_ir_graph); /* output the vcg file */ //dump_ir_block_graph (current_ir_graph, "-early");