init_firm() takes now a parameter, the old behavior is enfrced with NULL.
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 26 Feb 2003 10:14:40 +0000 (10:14 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 26 Feb 2003 10:14:40 +0000 (10:14 +0000)
[r830]

23 files changed:
testprograms/array-heap_example.c
testprograms/array-stack_example.c
testprograms/call_str_example.c
testprograms/cond_example.c
testprograms/const_ent_example.c
testprograms/const_eval_example.c
testprograms/dead_block_example.c
testprograms/empty.c
testprograms/endless_loop.c
testprograms/float_example.c
testprograms/global_cse.c
testprograms/global_var_example.c
testprograms/if_else_example.c
testprograms/if_example.c
testprograms/if_while_example.c
testprograms/inheritance_example.c
testprograms/irr_cf_example.c
testprograms/irr_loop_example.c
testprograms/memory_example.c
testprograms/oo_inline_example.c
testprograms/oo_program_example.c
testprograms/three_cfpred_example.c
testprograms/while_example.c

index c226212..eeb7e22 100644 (file)
@@ -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.
index 10ac2a4..af8eb0e 100644 (file)
@@ -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");
 
index ff4f0ba..19e5082 100644 (file)
@@ -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),
index 9dff71c..dfbbcf6 100644 (file)
@@ -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);
index a0d8bb3..c9df09a 100644 (file)
@@ -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"));
index 941620c..66c21f4 100644 (file)
@@ -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);
index e7513b8..5a4d040 100644 (file)
@@ -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);
index 7a26984..0a43fb9 100644 (file)
@@ -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. **/
 
index 661395e..e4b0988 100644 (file)
@@ -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);
index 783ada1..a3994e1 100644 (file)
@@ -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. **/
 
index 4f2772d..9e7ba99 100644 (file)
@@ -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);
index d149a14..056b25b 100644 (file)
@@ -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.
index f4f9246..cd1a478 100644 (file)
@@ -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);
index 3758a1d..2d1f424 100644 (file)
@@ -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"
index cc3587d..7c60272 100644 (file)
@@ -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);
index 03bdc27..0e94907 100644 (file)
@@ -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"));
index 7222308..96e27ab 100644 (file)
@@ -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.
index 3129af8..6d8da57 100644 (file)
@@ -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);
index b6a6e79..5e2706b 100644 (file)
@@ -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);
 
index 0c250c4..af2122c 100644 (file)
@@ -58,7 +58,7 @@ main(void)
 
   int i;
 
-  init_firm ();
+  init_firm (NULL);
 
   set_optimize(1);
   set_opt_inline (1);
index 73ae9c9..dcd5ca0 100644 (file)
@@ -55,7 +55,7 @@ main(void)
 
   int i;
 
-  init_firm ();
+  init_firm (NULL);
 
   set_opt_constant_folding(1);
   set_opt_cse(1);
index 1570e18..51a04e1 100644 (file)
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
           *scndCondBlock, *Block2, *Block3, *x;
 
   /* init library */
-  init_firm ();
+  init_firm (NULL);
 
   set_optimize(1);
 
index 69d2bdf..6039d45 100644 (file)
@@ -42,7 +42,7 @@ main(void)
 
   printf("\nCreating an IR graph: WHILE_EXAMPLE...\n");
 
-  init_firm ();
+  init_firm (NULL);
 
   set_optimize(1);
   set_opt_constant_folding(1);