projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CVS:
[libfirm]
/
ir
/
ir
/
irgraph.c
diff --git
a/ir/ir/irgraph.c
b/ir/ir/irgraph.c
index
e930f3a
..
249fdb5
100644
(file)
--- a/
ir/ir/irgraph.c
+++ b/
ir/ir/irgraph.c
@@
-31,7
+31,7
@@
Phi_in_stack *new_Phi_in_stack();
and optimization.
*/
ir_graph *
and optimization.
*/
ir_graph *
-new_ir_graph (entity *ent, int
params
)
+new_ir_graph (entity *ent, int
n_loc
)
{
ir_graph *res;
ir_node *first_block;
{
ir_graph *res;
ir_node *first_block;
@@
-43,7
+43,7
@@
new_ir_graph (entity *ent, int params)
/** Internal information for graph construction either held in the graph or
*** initialized for each graph. **/
/** Internal information for graph construction either held in the graph or
*** initialized for each graph. **/
- res->
params = params
+ 1; /* number of local variables that are never
+ res->
n_loc = n_loc
+ 1; /* number of local variables that are never
dereferenced in this graph plus one for
the store. This is not the number of parameters
to the procedure! */
dereferenced in this graph plus one for
the store. This is not the number of parameters
to the procedure! */
@@
-65,10
+65,10
@@
new_ir_graph (entity *ent, int params)
set_entity_irg(ent, res);
/** Nodes needed in every graph **/
set_entity_irg(ent, res);
/** Nodes needed in every graph **/
- res->end_block = new_Block ();
+ res->end_block = new_
imm
Block ();
res->end = new_End ();
res->end = new_End ();
- res->start_block = new_Block ();
+ res->start_block = new_
imm
Block ();
res->start = new_Start ();
res->bad = new_ir_node (res, res->start_block, op_Bad, mode_T, 0, NULL);
res->start = new_Start ();
res->bad = new_ir_node (res, res->start_block, op_Bad, mode_T, 0, NULL);
@@
-87,7
+87,7
@@
new_ir_graph (entity *ent, int params)
mature_block (res->current_block);
/** Make a block to start with **/
mature_block (res->current_block);
/** Make a block to start with **/
- first_block = new_Block ();
+ first_block = new_
imm
Block ();
add_in_edge (first_block, projX);
return res;
add_in_edge (first_block, projX);
return res;
@@
-232,15
+232,15
@@
set_irg_ent (ir_graph *irg, entity *ent)
}
int
}
int
-get_irg_
params
(ir_graph *irg)
+get_irg_
n_loc
(ir_graph *irg)
{
{
- return irg->
params
;
+ return irg->
n_loc
;
}
void
}
void
-set_irg_
params (ir_graph *irg, int params
)
+set_irg_
n_loc (ir_graph *irg, int n_loc
)
{
{
- irg->
params = params
;
+ irg->
n_loc = n_loc
;
}
unsigned long
}
unsigned long