Commit b67627d2 authored by Götz Lindenmaier's avatar Götz Lindenmaier
Browse files

Umstellung der Modi,

Sather-K bzw fiasco tarvals entfernt

[r522]
parent ee570c83
...@@ -159,7 +159,7 @@ static void sel_methods_walker(ir_node * node, pmap * ldname_map) { ...@@ -159,7 +159,7 @@ static void sel_methods_walker(ir_node * node, pmap * ldname_map) {
assert(get_entity_irg(ent)); assert(get_entity_irg(ent));
set_irg_current_block(current_ir_graph, get_nodes_Block(node)); set_irg_current_block(current_ir_graph, get_nodes_Block(node));
exchange(node, new_d_Const(get_irn_dbg_info(node), exchange(node, new_d_Const(get_irn_dbg_info(node),
mode_p, tarval_p_from_entity(ent))); mode_P, tarval_P_from_entity(ent)));
} }
} }
} }
...@@ -348,7 +348,7 @@ static void callee_ana_proj(ir_node * node, long n, eset * methods) { ...@@ -348,7 +348,7 @@ static void callee_ana_proj(ir_node * node, long n, eset * methods) {
static void callee_ana_node(ir_node * node, eset * methods) { static void callee_ana_node(ir_node * node, eset * methods) {
int i; int i;
assert((get_irn_mode(node) == mode_p) || is_Bad(node)); assert((get_irn_mode(node) == mode_P) || is_Bad(node));
/* rekursion verhindern */ /* rekursion verhindern */
if (get_irn_link(node) == MARK) { if (get_irn_link(node) == MARK) {
/* already visited */ /* already visited */
...@@ -364,7 +364,7 @@ static void callee_ana_node(ir_node * node, eset * methods) { ...@@ -364,7 +364,7 @@ static void callee_ana_node(ir_node * node, eset * methods) {
case iro_Const: { case iro_Const: {
/* interne Methode */ /* interne Methode */
entity * ent = get_Const_tarval(node)->u.p.ent; entity * ent = get_Const_tarval(node)->u.P.ent;
assert(ent && is_method_type(get_entity_type(ent))); assert(ent && is_method_type(get_entity_type(ent)));
if (get_entity_visibility(ent) != external_allocated) { if (get_entity_visibility(ent) != external_allocated) {
assert(get_entity_irg(ent)); assert(get_entity_irg(ent));
...@@ -516,7 +516,7 @@ static void free_mark_proj(ir_node * node, long n, eset * set) { ...@@ -516,7 +516,7 @@ static void free_mark_proj(ir_node * node, long n, eset * set) {
static void free_mark(ir_node * node, eset * set) { static void free_mark(ir_node * node, eset * set) {
int i; int i;
assert(get_irn_mode(node) == mode_p); assert(get_irn_mode(node) == mode_P);
if (get_irn_link(node) == MARK) { if (get_irn_link(node) == MARK) {
return; /* already visited */ return; /* already visited */
} }
...@@ -536,7 +536,7 @@ static void free_mark(ir_node * node, eset * set) { ...@@ -536,7 +536,7 @@ static void free_mark(ir_node * node, eset * set) {
break; break;
case iro_Const: { case iro_Const: {
tarval * val = get_Const_tarval(node); tarval * val = get_Const_tarval(node);
entity * ent = val->u.p.ent; entity * ent = val->u.P.ent;
if (ent != NULL && is_method_type(get_entity_type(ent))) { if (ent != NULL && is_method_type(get_entity_type(ent))) {
eset_insert(set, ent); eset_insert(set, ent);
} }
...@@ -584,7 +584,7 @@ static void free_ana_walker(ir_node * node, eset * set) { ...@@ -584,7 +584,7 @@ static void free_ana_walker(ir_node * node, eset * set) {
set_irn_link(node, MARK); set_irn_link(node, MARK);
for (i = get_Call_arity(node) - 1; i >= 0; --i) { for (i = get_Call_arity(node) - 1; i >= 0; --i) {
ir_node * pred = get_Call_param(node, i); ir_node * pred = get_Call_param(node, i);
if (get_irn_mode(pred) == mode_p) { if (get_irn_mode(pred) == mode_P) {
free_mark(pred, set); free_mark(pred, set);
} }
} }
...@@ -595,7 +595,7 @@ static void free_ana_walker(ir_node * node, eset * set) { ...@@ -595,7 +595,7 @@ static void free_ana_walker(ir_node * node, eset * set) {
set_irn_link(node, MARK); set_irn_link(node, MARK);
for (i = get_irn_arity(node) - 1; i >= 0; --i) { for (i = get_irn_arity(node) - 1; i >= 0; --i) {
ir_node * pred = get_irn_n(node, i); ir_node * pred = get_irn_n(node, i);
if (get_irn_mode(pred) == mode_p) { if (get_irn_mode(pred) == mode_P) {
free_mark(pred, set); free_mark(pred, set);
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment