Commit 0b549402 authored by Christian Würdig's avatar Christian Würdig
Browse files

added new callback to set frame entity

parent d6b7e949
......@@ -269,6 +269,10 @@ static entity *ia32_get_frame_entity(const void *self, const ir_node *irn) {
return is_ia32_irn(irn) ? get_ia32_frame_ent(irn) : NULL;
}
static void ia32_set_frame_entity(const void *self, const ir_node *irn, entity *ent) {
set_ia32_frame_ent(irn, ent);
}
static void ia32_set_stack_bias(const void *self, ir_node *irn, int bias) {
char buf[64];
const ia32_irn_ops_t *ops = self;
......@@ -733,6 +737,7 @@ static const arch_irn_ops_if_t ia32_irn_ops_if = {
ia32_classify,
ia32_get_flags,
ia32_get_frame_entity,
ia32_set_frame_entity,
ia32_set_stack_bias,
ia32_get_inverse,
ia32_get_op_estimated_cost,
......
......@@ -845,7 +845,7 @@ void set_ia32_tgt_mode(ir_node *node, ir_mode *mode) {
}
/**
* Gets the frame entity assigned to this node;
* Gets the frame entity assigned to this node.
*/
entity *get_ia32_frame_ent(const ir_node *node) {
ia32_attr_t *attr = get_ia32_attr(node);
......@@ -853,11 +853,12 @@ entity *get_ia32_frame_ent(const ir_node *node) {
}
/**
* Sets the frame entity for this node;
* Sets the frame entity for this node.
*/
void set_ia32_frame_ent(ir_node *node, entity *ent) {
ia32_attr_t *attr = get_ia32_attr(node);
attr->frame_ent = ent;
set_ia32_use_frame(node);
}
/**
......
Markdown is supported
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