X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbenode.c;h=3ba979617ab5e461b0b3cfa2c244f54a9f3e463f;hb=4ed245f5007168dab7850942a7ee6b6b29a19817;hp=95416e7d81d1bc94c471428eafc71c2231dd7f93;hpb=29681e70b073ec2ecf9d6dd8cd37f05439ada3cc;p=libfirm diff --git a/ir/be/benode.c b/ir/be/benode.c index 95416e7d8..3ba979617 100644 --- a/ir/be/benode.c +++ b/ir/be/benode.c @@ -753,7 +753,7 @@ int be_has_frame_entity(const ir_node *irn) } } -entity *be_get_frame_entity(const ir_node *irn) +entity* be_get_frame_entity(const ir_node *irn) { if(be_has_frame_entity(irn)) { be_frame_attr_t *a = get_irn_attr(irn); @@ -762,16 +762,6 @@ entity *be_get_frame_entity(const ir_node *irn) return NULL; } -void be_set_frame_entity(const ir_node *irn, entity* ent) -{ - be_frame_attr_t *a; - - assert(be_has_frame_entity(irn)); - - a = get_irn_attr(irn); - a->ent = ent; -} - void be_set_MemPerm_in_entity(const ir_node *irn, int n, entity *ent) { be_memperm_attr_t *attr = get_irn_attr(irn); @@ -1065,7 +1055,7 @@ static arch_irn_class_t be_node_classify(const void *_self, const ir_node *irn) XXX(StackParam, stackparam); #undef XXX default: - return 0; + return arch_irn_class_normal; } return 0; @@ -1082,6 +1072,16 @@ static entity *be_node_get_frame_entity(const void *self, const ir_node *irn) return be_get_frame_entity(irn); } +static void be_node_set_frame_entity(const void *self, ir_node *irn, entity *ent) +{ + be_frame_attr_t *a; + + assert(be_has_frame_entity(irn)); + + a = get_irn_attr(irn); + a->ent = ent; +} + static void be_node_set_frame_offset(const void *self, ir_node *irn, int offset) { if(be_has_frame_entity(irn)) { @@ -1106,7 +1106,12 @@ static const arch_irn_ops_if_t be_node_irn_ops_if = { be_node_classify, be_node_get_flags, be_node_get_frame_entity, - be_node_set_frame_offset + be_node_set_frame_entity, + be_node_set_frame_offset, + NULL, /* get_inverse */ + NULL, /* get_op_estimated_cost */ + NULL, /* possible_memory_operand */ + NULL, /* perform_memory_operand */ }; static const arch_irn_ops_t be_node_irn_ops = { @@ -1226,6 +1231,10 @@ static entity *phi_get_frame_entity(const void *_self, const ir_node *irn) return NULL; } +static void phi_set_frame_entity(const void *_self, ir_node *irn, entity *ent) +{ +} + static void phi_set_frame_offset(const void *_self, ir_node *irn, int bias) { } @@ -1237,7 +1246,12 @@ static const arch_irn_ops_if_t phi_irn_ops = { phi_classify, phi_get_flags, phi_get_frame_entity, - phi_set_frame_offset + phi_set_frame_entity, + phi_set_frame_offset, + NULL, /* get_inverse */ + NULL, /* get_op_estimated_cost */ + NULL, /* possible_memory_operand */ + NULL, /* perform_memory_operand */ }; static const arch_irn_handler_t phi_irn_handler = {