projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BugFix: equivalent_node_Bound() was too greedy, reduced to a safe minimum (now mostly...
[libfirm]
/
ir
/
ir
/
irgraph.c
diff --git
a/ir/ir/irgraph.c
b/ir/ir/irgraph.c
index
0686a1c
..
a172f4b
100644
(file)
--- a/
ir/ir/irgraph.c
+++ b/
ir/ir/irgraph.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-74,7
+74,7
@@
void set_current_ir_graph(ir_graph *graph) {
current_ir_graph = graph;
}
current_ir_graph = graph;
}
-
+#ifdef INTERPROCEDURAL_VIEW
int firm_interprocedural_view = 0;
int (get_interprocedural_view)(void) {
int firm_interprocedural_view = 0;
int (get_interprocedural_view)(void) {
@@
-94,6
+94,7
@@
void (set_interprocedural_view)(int state) {
_get_irn_n = _get_irn_intra_n;
}
}
_get_irn_n = _get_irn_intra_n;
}
}
+#endif
/** contains the suffix for frame type names */
static ident *frame_type_suffix = NULL;
/** contains the suffix for frame type names */
static ident *frame_type_suffix = NULL;
@@
-254,10
+255,10
@@
ir_graph *new_r_ir_graph(ir_entity *ent, int n_loc) {
add_immBlock_pred(start_block, projX);
set_store(initial_mem);
add_immBlock_pred(start_block, projX);
set_store(initial_mem);
+ res->index = get_irp_new_irg_idx();
#ifdef DEBUG_libfirm
res->graph_nr = get_irp_new_node_nr();
#endif
#ifdef DEBUG_libfirm
res->graph_nr = get_irp_new_node_nr();
#endif
- res->proj_args = NULL;
/*
* The code generation needs it. leave it in now.
/*
* The code generation needs it. leave it in now.
@@
-411,14
+412,15
@@
int
return _is_ir_graph(thing);
}
return _is_ir_graph(thing);
}
-/* Outputs a unique number for this node */
-long get_irg_graph_nr(ir_graph *irg) {
- assert(irg);
#ifdef DEBUG_libfirm
#ifdef DEBUG_libfirm
+/* Outputs a unique number for this node */
+long get_irg_graph_nr(const ir_graph *irg) {
return irg->graph_nr;
return irg->graph_nr;
-#else
- return (long)PTR_TO_INT(irg);
+}
#endif
#endif
+
+int get_irg_idx(const ir_graph *irg) {
+ return irg->index;
}
ir_node *
}
ir_node *
@@
-542,16
+544,6
@@
void
_set_irg_value_param_base(irg, node);
}
_set_irg_value_param_base(irg, node);
}
-ir_node **
-(get_irg_proj_args) (const ir_graph *irg) {
- return _get_irg_proj_args (irg);
-}
-
-void
-(set_irg_proj_args) (ir_graph *irg, ir_node **nodes) {
- _set_irg_proj_args (irg, nodes);
-}
-
ir_node *
(get_irg_bad)(const ir_graph *irg) {
return _get_irg_bad(irg);
ir_node *
(get_irg_bad)(const ir_graph *irg) {
return _get_irg_bad(irg);