projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed debug output of unary x87 nodes
[libfirm]
/
ir
/
be
/
benode.c
diff --git
a/ir/be/benode.c
b/ir/be/benode.c
index
95416e7
..
3ba9796
100644
(file)
--- 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);
{
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;
}
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);
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:
XXX(StackParam, stackparam);
#undef XXX
default:
- return
0
;
+ return
arch_irn_class_normal
;
}
return 0;
}
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);
}
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)) {
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_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 = {
};
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;
}
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)
{
}
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_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 = {
};
static const arch_irn_handler_t phi_irn_handler = {