projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dump calling conventions for entities
[libfirm]
/
ir
/
ir
/
ircgopt.c
diff --git
a/ir/ir/ircgopt.c
b/ir/ir/ircgopt.c
index
a04d95f
..
6ce2e42
100644
(file)
--- a/
ir/ir/ircgopt.c
+++ b/
ir/ir/ircgopt.c
@@
-28,11
+28,7
@@
#include "irflag_t.h"
#include "ircons.h"
#include "typewalk.h"
#include "irflag_t.h"
#include "ircons.h"
#include "typewalk.h"
-
-static void clear_link(ir_node * node, void * env) {
- set_irn_link(node, NULL);
-}
-
+#include "irtools.h"
/* Call-Operationen an die "link"-Liste von "call_head" anhängen. */
static void collect_call(ir_node * node, ir_node * head) {
/* Call-Operationen an die "link"-Liste von "call_head" anhängen. */
static void collect_call(ir_node * node, ir_node * head) {
@@
-47,13
+43,11
@@
static void make_entity_to_description(type_or_ent *tore, void *env) {
entity *ent = (entity *)tore;
if ((is_Method_type(get_entity_type(ent))) &&
entity *ent = (entity *)tore;
if ((is_Method_type(get_entity_type(ent))) &&
-
(get_entity_peculiarity(ent) != peculiarity_description) &&
-
(get_entity_visibility(ent) != visibility_external_allocated) ) {
+ (get_entity_peculiarity(ent) != peculiarity_description) &&
+ (get_entity_visibility(ent) != visibility_external_allocated) ) {
entity *impl = get_SymConst_entity(get_atomic_ent_value(ent));
if (get_entity_link(impl) != env) {
entity *impl = get_SymConst_entity(get_atomic_ent_value(ent));
if (get_entity_link(impl) != env) {
- set_entity_peculiarity(ent, peculiarity_description);
- //set_atomic_ent_value(ent, new_r_Const(get_const_code_irg(), get_irg_start_block(get_const_code_irg()),
- // mode_P, get_tarval_null(mode_P)));
+ set_entity_peculiarity(ent, peculiarity_description);
}
}
}
}
}
}
@@
-82,7
+76,7
@@
void gc_irgs(int n_keep, entity ** keep_arr) {
ir_graph * irg = get_entity_irg(marked[i]);
ir_node * node = get_irg_end(irg);
/* collect calls */
ir_graph * irg = get_entity_irg(marked[i]);
ir_node * node = get_irg_end(irg);
/* collect calls */
- irg_walk_graph(irg, clear_link, (irg_walk_func *) collect_call, node);
+ irg_walk_graph(irg,
firm_
clear_link, (irg_walk_func *) collect_call, node);
/* iterate calls */
for (node = get_irn_link(node); node; node = get_irn_link(node)) {
int i;
/* iterate calls */
for (node = get_irn_link(node); node; node = get_irn_link(node)) {
int i;
@@
-92,10
+86,10
@@
void gc_irgs(int n_keep, entity ** keep_arr) {
if (get_entity_irg(ent) && get_entity_link(ent) != MARK) {
set_entity_link(ent, MARK);
ARR_APP1(entity *, marked, ent);
if (get_entity_irg(ent) && get_entity_link(ent) != MARK) {
set_entity_link(ent, MARK);
ARR_APP1(entity *, marked, ent);
- if (get_opt_dead_method_elimination_verbose() && get_firm_verbosity() > 2) {
- printf("dead method elimination: method %s can be called from Call %ld: kept alive.\n",
- get_entity_ld_name(ent), get_irn_node_nr(node));
- }
+
if (get_opt_dead_method_elimination_verbose() && get_firm_verbosity() > 2) {
+
printf("dead method elimination: method %s can be called from Call %ld: kept alive.\n",
+ get_entity_ld_name(ent), get_irn_node_nr(node));
+
}
}
}
}
}
}
}