Commit 9fbc46dc authored by Michael Beck's avatar Michael Beck
Browse files

init_firm() takes now a parameter, the old behavior is enfrced with NULL.

[r830]
parent d21ef9d9
......@@ -69,7 +69,7 @@ main(void)
ir_graph *main_irg;
ir_node *array, *array_ptr, *c3, *elt, *val, *x;
init_firm ();
init_firm (NULL);
/* make basic type information for primitive type int.
In Sather primitive types are represented by a class.
......
......@@ -59,7 +59,7 @@ main(void)
ir_graph *main_irg;
ir_node *array_ptr, *c3, *elt, *val, *x;
init_firm ();
init_firm (NULL);
printf("\nCreating an IR graph: ARRAY-STACK_EXAMPLE...\n");
......
......@@ -36,7 +36,7 @@ int main(int argc, char **argv)
printf("\nCreating an IR graph: CALL_STR_EXAMPLE...\n");
/* init library */
init_firm ();
init_firm (NULL);
string_ptr = new_type_pointer (
id_from_str ("ptr_to_string", 13),
......
......@@ -35,7 +35,7 @@ int main(int argc, char **argv)
printf("\nCreating an IR graph: COND_EXAMPLE...\n");
/* init library */
init_firm ();
init_firm (NULL);
/*** Make basic type information for primitive type int. ***/
prim_t_int = new_type_primitive(id_from_str ("int", 3), mode_Is);
......
......@@ -48,7 +48,7 @@ int main(int argc, char **argv)
printf("Creating type information...\n");
/** init library */
init_firm ();
init_firm (NULL);
/** make idents for all used identifiers in the program. */
Ci = id_from_str("C", strlen("C"));
......
......@@ -38,7 +38,7 @@ main(void)
printf("\nCreating an IR graph: CONST_EVAL_EXAMPLE...\n");
init_firm ();
init_firm (NULL);
/*** Make basic type information for primitive type int. ***/
prim_t_int = new_type_primitive(id_from_str ("int", 3), mode_Is);
......
......@@ -55,7 +55,7 @@ int main(int argc, char **argv)
*deadBlock, *x;
/* init library */
init_firm ();
init_firm (NULL);
/*** Make basic type information for primitive type int. ***/
prim_t_int = new_type_primitive(id_from_str ("int", 3), mode_Is);
......
......@@ -35,7 +35,7 @@ int main(int argc, char **argv)
printf("\nCreating an IR graph: EMPTY...\n");
/* init library */
init_firm ();
init_firm (NULL);
/** Build type information for the procedure. **/
......
......@@ -47,7 +47,7 @@ main(void)
printf("\nCreating an IR graph: ENDLESS_LOOP_EXAMPLE...\n");
init_firm ();
init_firm (NULL);
set_optimize(1);
set_opt_constant_folding(1);
......
......@@ -37,7 +37,7 @@ int main(int argc, char **argv)
printf("\nCreating an IR graph: EMPTY...\n");
/* init library */
init_firm ();
init_firm (NULL);
/** Build type information for the procedure. **/
......
......@@ -43,7 +43,7 @@ main(void)
printf("\nCreating an IR graph: GLOBAL_CSE_EXAMPLE...\n");
init_firm ();
init_firm (NULL);
set_optimize(1);
set_opt_constant_folding(1);
......
......@@ -43,7 +43,7 @@ int main(int argc, char **argv)
printf("\nCreating an IR graph: GLOBAL_VAR ...\n");
/* init library */
init_firm ();
init_firm (NULL);
/* make basic type information for primitive type int.
In Sather primitive types are represented by a class.
......
......@@ -44,7 +44,7 @@ int main(int argc, char **argv)
printf("\ncreating an IR graph: IF_ELSE_EXAMPLE...\n");
/* init library */
init_firm ();
init_firm (NULL);
/*** Make basic type information for primitive type int. ***/
prim_t_int = new_type_primitive(id_from_str ("int", 3), mode_Is);
......
......@@ -38,7 +38,7 @@ main(void)
printf("\nCreating an IR graph: IF_EXAMPLE...\n");
init_firm ();
init_firm (NULL);
#define CLASSNAME "IF_EXAMPLE"
#define METHODNAME "IF_EXAMPLE_main"
......
......@@ -46,7 +46,7 @@ main(void)
printf("\nCreating an IR graph: IF_WHILE_EXAMPLE...\n");
init_firm ();
init_firm (NULL);
turn_off_edge_labels();
set_optimize(1);
......
......@@ -48,7 +48,7 @@ int main(int argc, char **argv)
printf("\nCreating type information...\n");
/** init library */
init_firm ();
init_firm (NULL);
/** make idents for all used identifiers in the program. */
ii = id_from_str("i", strlen("i"));
......
......@@ -56,7 +56,7 @@ int main(int argc, char **argv)
printf("\nCreating an IR graph: IRR_CF...\n");
/* init library */
init_firm ();
init_firm (NULL);
set_opt_constant_folding(0); /* so that stupid test are not evaluated. */
/* FIRM was designed for oo languages where all methods belong to a class.
......
......@@ -47,7 +47,7 @@ int main(int argc, char **argv)
/* init library */
init_firm ();
init_firm (NULL);
set_opt_constant_folding (0); /* so that the stupid tests are not optimized. */
set_opt_cse(1);
set_opt_dead_node_elimination(1);
......
......@@ -66,7 +66,7 @@ main(void)
printf("\nCreating an IR graph: MEMORY_EXAMPLE...\n");
init_firm ();
init_firm (NULL);
set_opt_dead_node_elimination (1);
......
......@@ -58,7 +58,7 @@ main(void)
int i;
init_firm ();
init_firm (NULL);
set_optimize(1);
set_opt_inline (1);
......
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