projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sparc: implement float->unsigned conversions
[libfirm]
/
ir
/
be
/
beinfo.c
diff --git
a/ir/be/beinfo.c
b/ir/be/beinfo.c
index
53aca77
..
95cceb4
100644
(file)
--- a/
ir/be/beinfo.c
+++ b/
ir/be/beinfo.c
@@
-36,7
+36,7
@@
static copy_attr_func old_phi_copy_attr;
static copy_attr_func old_phi_copy_attr;
-void be_info_new_node(ir_node *node)
+void be_info_new_node(ir_
graph *irg, ir_
node *node)
{
struct obstack *obst;
backend_info_t *info;
{
struct obstack *obst;
backend_info_t *info;
@@
-45,7
+45,7
@@
void be_info_new_node(ir_node *node)
if (is_Proj(node))
return;
if (is_Proj(node))
return;
- obst = be_get_be_obst(
current_ir_graph
);
+ obst = be_get_be_obst(
irg
);
info = OALLOCZ(obst, backend_info_t);
assert(node->backend_info == NULL);
info = OALLOCZ(obst, backend_info_t);
assert(node->backend_info == NULL);
@@
-124,8
+124,9
@@
int be_nodes_equal(const ir_node *node1, const ir_node *node2)
static void init_walker(ir_node *node, void *data)
{
static void init_walker(ir_node *node, void *data)
{
+ ir_graph *irg = get_irn_irg(node);
(void) data;
(void) data;
- be_info_new_node(node);
+ be_info_new_node(
irg,
node);
}
static bool initialized = false;
}
static bool initialized = false;
@@
-154,7
+155,7
@@
static void sched_edge_hook(FILE *F, const ir_node *irn)
if (get_irn_irg(irn)->be_data == NULL)
return;
if (get_irn_irg(irn)->be_data == NULL)
return;
- if (sched_is_scheduled(irn) && sched_has_prev(irn)) {
+ if (sched_is_scheduled(irn) && sched_has_prev(irn)
&& !is_Block(irn)
) {
ir_node *prev = sched_prev(irn);
fprintf(F, "edge:{sourcename: ");
print_nodeid(F, irn);
ir_node *prev = sched_prev(irn);
fprintf(F, "edge:{sourcename: ");
print_nodeid(F, irn);