Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
9fbc46dc
Commit
9fbc46dc
authored
Feb 26, 2003
by
Michael Beck
Browse files
init_firm() takes now a parameter, the old behavior is enfrced with NULL.
[r830]
parent
d21ef9d9
Changes
23
Hide whitespace changes
Inline
Side-by-side
testprograms/array-heap_example.c
View file @
9fbc46dc
...
...
@@ -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.
...
...
testprograms/array-stack_example.c
View file @
9fbc46dc
...
...
@@ -59,7 +59,7 @@ main(void)
ir_graph
*
main_irg
;
ir_node
*
array_ptr
,
*
c3
,
*
elt
,
*
val
,
*
x
;
init_firm
();
init_firm
(
NULL
);
printf
(
"
\n
Creating an IR graph: ARRAY-STACK_EXAMPLE...
\n
"
);
...
...
testprograms/call_str_example.c
View file @
9fbc46dc
...
...
@@ -36,7 +36,7 @@ int main(int argc, char **argv)
printf
(
"
\n
Creating 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
),
...
...
testprograms/cond_example.c
View file @
9fbc46dc
...
...
@@ -35,7 +35,7 @@ int main(int argc, char **argv)
printf
(
"
\n
Creating 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
);
...
...
testprograms/const_ent_example.c
View file @
9fbc46dc
...
...
@@ -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"
));
...
...
testprograms/const_eval_example.c
View file @
9fbc46dc
...
...
@@ -38,7 +38,7 @@ main(void)
printf
(
"
\n
Creating 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
);
...
...
testprograms/dead_block_example.c
View file @
9fbc46dc
...
...
@@ -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
);
...
...
testprograms/empty.c
View file @
9fbc46dc
...
...
@@ -35,7 +35,7 @@ int main(int argc, char **argv)
printf
(
"
\n
Creating an IR graph: EMPTY...
\n
"
);
/* init library */
init_firm
();
init_firm
(
NULL
);
/** Build type information for the procedure. **/
...
...
testprograms/endless_loop.c
View file @
9fbc46dc
...
...
@@ -47,7 +47,7 @@ main(void)
printf
(
"
\n
Creating an IR graph: ENDLESS_LOOP_EXAMPLE...
\n
"
);
init_firm
();
init_firm
(
NULL
);
set_optimize
(
1
);
set_opt_constant_folding
(
1
);
...
...
testprograms/float_example.c
View file @
9fbc46dc
...
...
@@ -37,7 +37,7 @@ int main(int argc, char **argv)
printf
(
"
\n
Creating an IR graph: EMPTY...
\n
"
);
/* init library */
init_firm
();
init_firm
(
NULL
);
/** Build type information for the procedure. **/
...
...
testprograms/global_cse.c
View file @
9fbc46dc
...
...
@@ -43,7 +43,7 @@ main(void)
printf
(
"
\n
Creating an IR graph: GLOBAL_CSE_EXAMPLE...
\n
"
);
init_firm
();
init_firm
(
NULL
);
set_optimize
(
1
);
set_opt_constant_folding
(
1
);
...
...
testprograms/global_var_example.c
View file @
9fbc46dc
...
...
@@ -43,7 +43,7 @@ int main(int argc, char **argv)
printf
(
"
\n
Creating 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.
...
...
testprograms/if_else_example.c
View file @
9fbc46dc
...
...
@@ -44,7 +44,7 @@ int main(int argc, char **argv)
printf
(
"
\n
creating 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
);
...
...
testprograms/if_example.c
View file @
9fbc46dc
...
...
@@ -38,7 +38,7 @@ main(void)
printf
(
"
\n
Creating an IR graph: IF_EXAMPLE...
\n
"
);
init_firm
();
init_firm
(
NULL
);
#define CLASSNAME "IF_EXAMPLE"
#define METHODNAME "IF_EXAMPLE_main"
...
...
testprograms/if_while_example.c
View file @
9fbc46dc
...
...
@@ -46,7 +46,7 @@ main(void)
printf
(
"
\n
Creating an IR graph: IF_WHILE_EXAMPLE...
\n
"
);
init_firm
();
init_firm
(
NULL
);
turn_off_edge_labels
();
set_optimize
(
1
);
...
...
testprograms/inheritance_example.c
View file @
9fbc46dc
...
...
@@ -48,7 +48,7 @@ int main(int argc, char **argv)
printf
(
"
\n
Creating 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"
));
...
...
testprograms/irr_cf_example.c
View file @
9fbc46dc
...
...
@@ -56,7 +56,7 @@ int main(int argc, char **argv)
printf
(
"
\n
Creating 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.
...
...
testprograms/irr_loop_example.c
View file @
9fbc46dc
...
...
@@ -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
);
...
...
testprograms/memory_example.c
View file @
9fbc46dc
...
...
@@ -66,7 +66,7 @@ main(void)
printf
(
"
\n
Creating an IR graph: MEMORY_EXAMPLE...
\n
"
);
init_firm
();
init_firm
(
NULL
);
set_opt_dead_node_elimination
(
1
);
...
...
testprograms/oo_inline_example.c
View file @
9fbc46dc
...
...
@@ -58,7 +58,7 @@ main(void)
int
i
;
init_firm
();
init_firm
(
NULL
);
set_optimize
(
1
);
set_opt_inline
(
1
);
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment