summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestack.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-04-14 10:51:17 +0200
committerMatthias Braun <matze@braunis.de>2014-04-15 09:41:09 +0200
commit36408645cc9e8bcecf611fbf2591fba632a6fc60 (patch)
treef81b29cd72f1dbe0f613e167cbc7b6efbc88df17 /ir/be/bestack.c
parentb78e1f6dcd8fd4eedd642d0f303f91b6b4b6a503 (diff)
split Sel node into Member and Sel
- Compound type selection is performed with Member - Array indexing is performed with Sel - Instead of the simpleSel constructor functions you can use the normal Member constructors now - The concept of array element entities has been removed, Sel nodes just contain a pointer to the array type now.
Diffstat (limited to 'ir/be/bestack.c')
-rw-r--r--ir/be/bestack.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ir/be/bestack.c b/ir/be/bestack.c
index c28ec08..68dd517 100644
--- a/ir/be/bestack.c
+++ b/ir/be/bestack.c
@@ -80,10 +80,10 @@ static void stack_frame_compute_initial_offset(be_stack_layout_t *frame)
}
/**
- * Walker: finally lower all Sels of outer frame or parameter
+ * Walker: finally lower all Members of outer frame or parameter
* entities.
*/
-static void lower_outer_frame_sels(ir_node *sel, void *ctx)
+static void lower_outer_frame_members(ir_node *sel, void *ctx)
{
ir_node *ptr;
ir_entity *ent;
@@ -92,12 +92,12 @@ static void lower_outer_frame_sels(ir_node *sel, void *ctx)
ir_graph *irg;
(void) ctx;
- if (! is_Sel(sel))
+ if (!is_Member(sel))
return;
- ent = get_Sel_entity(sel);
+ ent = get_Member_entity(sel);
owner = get_entity_owner(ent);
- ptr = get_Sel_ptr(sel);
+ ptr = get_Member_ptr(sel);
irg = get_irn_irg(sel);
layout = be_get_irg_stack_layout(irg);
@@ -238,7 +238,7 @@ void be_abi_fix_stack_bias(ir_graph *irg)
continue;
ir_graph *irg = get_entity_irg(ent);
if (irg != NULL)
- irg_walk_graph(irg, NULL, lower_outer_frame_sels, NULL);
+ irg_walk_graph(irg, NULL, lower_outer_frame_members, NULL);
}
}