projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f9012c4
)
The const irg has not an initial_mem
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 2 Aug 2004 08:57:12 +0000
(08:57 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 2 Aug 2004 08:57:12 +0000
(08:57 +0000)
[r3656]
ir/ir/irgraph.c
patch
|
blob
|
history
diff --git
a/ir/ir/irgraph.c
b/ir/ir/irgraph.c
index
86e356a
..
ff67ad3
100644
(file)
--- a/
ir/ir/irgraph.c
+++ b/
ir/ir/irgraph.c
@@
-204,12
+204,15
@@
ir_graph *new_const_code_irg(void) {
res->end_except = res->end;
mature_block(get_cur_block());
res->bad = new_ir_node (NULL, res, res->start_block, op_Bad, mode_T, 0, NULL);
res->end_except = res->end;
mature_block(get_cur_block());
res->bad = new_ir_node (NULL, res, res->start_block, op_Bad, mode_T, 0, NULL);
- /* res->unknown = new_ir_node (NULL, res, res->start_block, op_Unknown, mode_T, 0, NULL); */
res->start = new_Start ();
/* Proj results of start node */
res->start = new_Start ();
/* Proj results of start node */
- projX = new_Proj (res->start, mode_X, pns_initial_exec);
+ projX = new_Proj (res->start, mode_X, pns_initial_exec);
+ res->initial_mem = new_Proj (res->start, mode_M, pns_global_store);
+
+ set_store(res->initial_mem);
add_in_edge(res->start_block, projX);
add_in_edge(res->start_block, projX);
+
mature_block (res->current_block);
add_in_edge (new_immBlock (), projX);
mature_block(get_cur_block());
mature_block (res->current_block);
add_in_edge (new_immBlock (), projX);
mature_block(get_cur_block());