Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
2f8c9cee
Commit
2f8c9cee
authored
Dec 13, 2006
by
Michael Beck
Browse files
rename type entity into ir_entity
parent
535e2c0b
Changes
7
Show whitespace changes
Inline
Side-by-side
ir/be/be_dbgout.h
View file @
2f8c9cee
...
...
@@ -32,7 +32,7 @@ typedef struct debug_ops {
void
(
*
main_program
)(
dbg_handle
*
handle
);
/** dumps the stabs for a method begin */
void
(
*
method_begin
)(
dbg_handle
*
handle
,
entity
*
ent
,
const
be_stack_layout_t
*
layout
);
void
(
*
method_begin
)(
dbg_handle
*
handle
,
ir_
entity
*
ent
,
const
be_stack_layout_t
*
layout
);
/** dumps the stabs for a method end */
void
(
*
method_end
)(
dbg_handle
*
handle
);
...
...
@@ -44,7 +44,7 @@ typedef struct debug_ops {
void
(
*
types
)(
dbg_handle
*
handle
);
/** dump a variable in the global type */
void
(
*
variable
)(
dbg_handle
*
h
,
struct
obstack
*
obst
,
entity
*
ent
);
void
(
*
variable
)(
dbg_handle
*
h
,
struct
obstack
*
obst
,
ir_
entity
*
ent
);
}
debug_ops
;
...
...
@@ -69,7 +69,7 @@ void be_dbg_include_end(dbg_handle *handle);
void
be_dbg_main_program
(
dbg_handle
*
handle
);
/** debug for a method begin */
void
be_dbg_method_begin
(
dbg_handle
*
handle
,
entity
*
ent
,
const
be_stack_layout_t
*
layout
);
void
be_dbg_method_begin
(
dbg_handle
*
handle
,
ir_
entity
*
ent
,
const
be_stack_layout_t
*
layout
);
/** debug for a method end */
void
be_dbg_method_end
(
dbg_handle
*
handle
);
...
...
@@ -81,7 +81,7 @@ void be_dbg_line(dbg_handle *handle, unsigned lineno, const char *address);
void
be_dbg_types
(
dbg_handle
*
handle
);
/** dump a variable in the global type */
void
be_dbg_variable
(
dbg_handle
*
handle
,
struct
obstack
*
obst
,
entity
*
ent
);
void
be_dbg_variable
(
dbg_handle
*
handle
,
struct
obstack
*
obst
,
ir_
entity
*
ent
);
/** Opens the NULL handler: no debug support. */
dbg_handle
*
be_nulldbg_open
(
void
);
...
...
ir/be/bearch.c
View file @
2f8c9cee
...
...
@@ -106,13 +106,13 @@ void arch_set_frame_offset(const arch_env_t *env, ir_node *irn, int offset)
ops
->
impl
->
set_frame_offset
(
ops
,
irn
,
offset
);
}
entity
*
arch_get_frame_entity
(
const
arch_env_t
*
env
,
ir_node
*
irn
)
ir_
entity
*
arch_get_frame_entity
(
const
arch_env_t
*
env
,
ir_node
*
irn
)
{
const
arch_irn_ops_t
*
ops
=
get_irn_ops
(
env
,
irn
);
return
ops
->
impl
->
get_frame_entity
(
ops
,
irn
);
}
void
arch_set_frame_entity
(
const
arch_env_t
*
env
,
ir_node
*
irn
,
entity
*
ent
)
void
arch_set_frame_entity
(
const
arch_env_t
*
env
,
ir_node
*
irn
,
ir_
entity
*
ent
)
{
const
arch_irn_ops_t
*
ops
=
get_irn_ops
(
env
,
irn
);
ops
->
impl
->
set_frame_entity
(
ops
,
irn
,
ent
);
...
...
ir/be/bearch.h
View file @
2f8c9cee
...
...
@@ -290,7 +290,7 @@ struct _arch_irn_ops_if_t {
* @param irn The node in question.
* @return The entity on the stack frame or NULL, if the node does not has a stack frame entity.
*/
entity
*
(
*
get_frame_entity
)(
const
void
*
self
,
const
ir_node
*
irn
);
ir_
entity
*
(
*
get_frame_entity
)(
const
void
*
self
,
const
ir_node
*
irn
);
/**
* Set the entity on the stack frame this node depends on.
...
...
@@ -298,7 +298,7 @@ struct _arch_irn_ops_if_t {
* @param irn The node in question.
* @param ent The entity to set
*/
void
(
*
set_frame_entity
)(
const
void
*
self
,
ir_node
*
irn
,
entity
*
ent
);
void
(
*
set_frame_entity
)(
const
void
*
self
,
ir_node
*
irn
,
ir_
entity
*
ent
);
/**
* Set the offset of a node carrying an entity on the stack frame.
...
...
@@ -378,8 +378,8 @@ extern const arch_irn_ops_t *arch_get_irn_ops(const arch_env_t *env, const ir_no
extern
void
arch_set_frame_offset
(
const
arch_env_t
*
env
,
ir_node
*
irn
,
int
bias
);
extern
entity
*
arch_get_frame_entity
(
const
arch_env_t
*
env
,
ir_node
*
irn
);
extern
void
arch_set_frame_entity
(
const
arch_env_t
*
env
,
ir_node
*
irn
,
entity
*
ent
);
extern
ir_
entity
*
arch_get_frame_entity
(
const
arch_env_t
*
env
,
ir_node
*
irn
);
extern
void
arch_set_frame_entity
(
const
arch_env_t
*
env
,
ir_node
*
irn
,
ir_
entity
*
ent
);
extern
int
arch_get_sp_bias
(
const
arch_env_t
*
env
,
ir_node
*
irn
);
extern
int
arch_get_op_estimated_cost
(
const
arch_env_t
*
env
,
const
ir_node
*
irn
);
...
...
ir/be/benode.c
View file @
2f8c9cee
...
...
@@ -95,21 +95,21 @@ typedef struct {
/** The be_Frame attribute type. */
typedef
struct
{
be_node_attr_t
node_attr
;
entity
*
ent
;
ir_
entity
*
ent
;
int
offset
;
}
be_frame_attr_t
;
/** The be_Call attribute type. */
typedef
struct
{
be_node_attr_t
node_attr
;
entity
*
ent
;
/**< The called entity if this is a static call. */
ir_
entity
*
ent
;
/**< The called entity if this is a static call. */
ir_type
*
call_tp
;
/**< The call type, copied from the original Call node. */
}
be_call_attr_t
;
typedef
struct
{
be_node_attr_t
node_attr
;
entity
**
in_entities
;
entity
**
out_entities
;
ir_
entity
**
in_entities
;
ir_
entity
**
out_entities
;
}
be_memperm_attr_t
;
ir_op
*
op_be_Spill
;
...
...
@@ -477,14 +477,14 @@ ir_node *be_new_Call(dbg_info *dbg, ir_graph *irg, ir_node *bl, ir_node *mem, ir
}
/* Gets the call entity or NULL if this is no static call. */
entity
*
be_Call_get_entity
(
const
ir_node
*
call
)
{
ir_
entity
*
be_Call_get_entity
(
const
ir_node
*
call
)
{
be_call_attr_t
*
a
=
get_irn_attr
(
call
);
assert
(
be_is_Call
(
call
));
return
a
->
ent
;
}
/* Sets the call entity. */
void
be_Call_set_entity
(
ir_node
*
call
,
entity
*
ent
)
{
void
be_Call_set_entity
(
ir_node
*
call
,
ir_
entity
*
ent
)
{
be_call_attr_t
*
a
=
get_irn_attr
(
call
);
assert
(
be_is_Call
(
call
));
a
->
ent
=
ent
;
...
...
@@ -612,7 +612,7 @@ ir_node *be_new_SetSP(const arch_register_t *sp, ir_graph *irg, ir_node *bl, ir_
return
irn
;
}
ir_node
*
be_new_StackParam
(
const
arch_register_class_t
*
cls
,
const
arch_register_class_t
*
cls_frame
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_mode
*
mode
,
ir_node
*
frame_pointer
,
entity
*
ent
)
ir_node
*
be_new_StackParam
(
const
arch_register_class_t
*
cls
,
const
arch_register_class_t
*
cls_frame
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_mode
*
mode
,
ir_node
*
frame_pointer
,
ir_
entity
*
ent
)
{
be_frame_attr_t
*
a
;
ir_node
*
irn
;
...
...
@@ -639,7 +639,7 @@ ir_node *be_new_RegParams(ir_graph *irg, ir_node *bl, int n_outs)
}
ir_node
*
be_new_FrameLoad
(
const
arch_register_class_t
*
cls_frame
,
const
arch_register_class_t
*
cls_data
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
mem
,
ir_node
*
frame
,
entity
*
ent
)
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
mem
,
ir_node
*
frame
,
ir_
entity
*
ent
)
{
be_frame_attr_t
*
a
;
ir_node
*
irn
;
...
...
@@ -657,7 +657,7 @@ ir_node *be_new_FrameLoad(const arch_register_class_t *cls_frame, const arch_reg
}
ir_node
*
be_new_FrameStore
(
const
arch_register_class_t
*
cls_frame
,
const
arch_register_class_t
*
cls_data
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
mem
,
ir_node
*
frame
,
ir_node
*
data
,
entity
*
ent
)
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
mem
,
ir_node
*
frame
,
ir_node
*
data
,
ir_
entity
*
ent
)
{
be_frame_attr_t
*
a
;
ir_node
*
irn
;
...
...
@@ -675,7 +675,7 @@ ir_node *be_new_FrameStore(const arch_register_class_t *cls_frame, const arch_re
return
irn
;
}
ir_node
*
be_new_FrameAddr
(
const
arch_register_class_t
*
cls_frame
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
frame
,
entity
*
ent
)
ir_node
*
be_new_FrameAddr
(
const
arch_register_class_t
*
cls_frame
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
frame
,
ir_
entity
*
ent
)
{
be_frame_attr_t
*
a
;
ir_node
*
irn
;
...
...
@@ -766,7 +766,7 @@ int be_has_frame_entity(const ir_node *irn)
}
}
entity
*
be_get_frame_entity
(
const
ir_node
*
irn
)
ir_
entity
*
be_get_frame_entity
(
const
ir_node
*
irn
)
{
if
(
be_has_frame_entity
(
irn
))
{
be_frame_attr_t
*
a
=
get_irn_attr
(
irn
);
...
...
@@ -775,7 +775,7 @@ entity* be_get_frame_entity(const ir_node *irn)
return
NULL
;
}
void
be_set_MemPerm_in_entity
(
const
ir_node
*
irn
,
int
n
,
entity
*
ent
)
void
be_set_MemPerm_in_entity
(
const
ir_node
*
irn
,
int
n
,
ir_
entity
*
ent
)
{
be_memperm_attr_t
*
attr
=
get_irn_attr
(
irn
);
...
...
@@ -785,7 +785,7 @@ void be_set_MemPerm_in_entity(const ir_node *irn, int n, entity *ent)
attr
->
in_entities
[
n
]
=
ent
;
}
entity
*
be_get_MemPerm_in_entity
(
const
ir_node
*
irn
,
int
n
)
ir_
entity
*
be_get_MemPerm_in_entity
(
const
ir_node
*
irn
,
int
n
)
{
be_memperm_attr_t
*
attr
=
get_irn_attr
(
irn
);
...
...
@@ -795,7 +795,7 @@ entity* be_get_MemPerm_in_entity(const ir_node* irn, int n)
return
attr
->
in_entities
[
n
];
}
void
be_set_MemPerm_out_entity
(
const
ir_node
*
irn
,
int
n
,
entity
*
ent
)
void
be_set_MemPerm_out_entity
(
const
ir_node
*
irn
,
int
n
,
ir_
entity
*
ent
)
{
be_memperm_attr_t
*
attr
=
get_irn_attr
(
irn
);
...
...
@@ -805,7 +805,7 @@ void be_set_MemPerm_out_entity(const ir_node *irn, int n, entity *ent)
attr
->
out_entities
[
n
]
=
ent
;
}
entity
*
be_get_MemPerm_out_entity
(
const
ir_node
*
irn
,
int
n
)
ir_
entity
*
be_get_MemPerm_out_entity
(
const
ir_node
*
irn
,
int
n
)
{
be_memperm_attr_t
*
attr
=
get_irn_attr
(
irn
);
...
...
@@ -1061,12 +1061,12 @@ static arch_irn_flags_t be_node_get_flags(const void *_self, const ir_node *irn)
return
r
?
r
->
req
.
flags
:
0
;
}
static
entity
*
be_node_get_frame_entity
(
const
void
*
self
,
const
ir_node
*
irn
)
static
ir_
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
)
static
void
be_node_set_frame_entity
(
const
void
*
self
,
ir_node
*
irn
,
ir_
entity
*
ent
)
{
be_frame_attr_t
*
a
;
...
...
@@ -1226,12 +1226,12 @@ static arch_irn_flags_t phi_get_flags(const void *_self, const ir_node *irn)
return
arch_irn_flags_none
;
}
static
entity
*
phi_get_frame_entity
(
const
void
*
_self
,
const
ir_node
*
irn
)
static
ir_
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_entity
(
const
void
*
_self
,
ir_node
*
irn
,
ir_
entity
*
ent
)
{
}
...
...
@@ -1423,7 +1423,7 @@ static int dump_node(ir_node *irn, FILE *f, dump_reason_t reason)
{
int
i
;
for
(
i
=
0
;
i
<
be_get_MemPerm_entity_arity
(
irn
);
++
i
)
{
entity
*
in
,
*
out
;
ir_
entity
*
in
,
*
out
;
in
=
be_get_MemPerm_in_entity
(
irn
,
i
);
out
=
be_get_MemPerm_out_entity
(
irn
,
i
);
if
(
in
)
{
...
...
ir/be/benode_t.h
View file @
2f8c9cee
...
...
@@ -147,10 +147,10 @@ ir_node *be_new_MemPerm(const arch_env_t *arch_env, ir_graph *irg, ir_node *bl,
ir_node
*
be_new_Keep
(
const
arch_register_class_t
*
cls
,
ir_graph
*
irg
,
ir_node
*
bl
,
int
arity
,
ir_node
*
in
[]);
ir_node
*
be_new_FrameLoad
(
const
arch_register_class_t
*
cls_frame
,
const
arch_register_class_t
*
cls_data
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
mem
,
ir_node
*
frame
,
entity
*
ent
);
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
mem
,
ir_node
*
frame
,
ir_
entity
*
ent
);
ir_node
*
be_new_FrameStore
(
const
arch_register_class_t
*
cls_frame
,
const
arch_register_class_t
*
cls_data
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
mem
,
ir_node
*
frame
,
ir_node
*
data
,
entity
*
ent
);
ir_node
*
be_new_FrameAddr
(
const
arch_register_class_t
*
cls_frame
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
frame
,
entity
*
ent
);
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
mem
,
ir_node
*
frame
,
ir_node
*
data
,
ir_
entity
*
ent
);
ir_node
*
be_new_FrameAddr
(
const
arch_register_class_t
*
cls_frame
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_node
*
frame
,
ir_
entity
*
ent
);
/**
* Position numbers for the be_AddSP inputs
...
...
@@ -244,9 +244,9 @@ void be_set_IncSP_offset(ir_node *irn, int offset);
int
be_get_IncSP_offset
(
const
ir_node
*
irn
);
/** Gets the call entity or NULL if this is no static call. */
entity
*
be_Call_get_entity
(
const
ir_node
*
call
);
ir_
entity
*
be_Call_get_entity
(
const
ir_node
*
call
);
/** Sets the call entity. */
void
be_Call_set_entity
(
ir_node
*
call
,
entity
*
ent
);
void
be_Call_set_entity
(
ir_node
*
call
,
ir_
entity
*
ent
);
/** Gets the call type. */
ir_type
*
be_Call_get_type
(
ir_node
*
call
);
/** Sets the call type. */
...
...
@@ -301,7 +301,7 @@ int be_Return_get_n_rets(ir_node *ret);
/**
* Construct a new Stack Parameter node.
*/
ir_node
*
be_new_StackParam
(
const
arch_register_class_t
*
cls
,
const
arch_register_class_t
*
cls_frame
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_mode
*
mode
,
ir_node
*
frame_pointer
,
entity
*
ent
);
ir_node
*
be_new_StackParam
(
const
arch_register_class_t
*
cls
,
const
arch_register_class_t
*
cls_frame
,
ir_graph
*
irg
,
ir_node
*
bl
,
ir_mode
*
mode
,
ir_node
*
frame_pointer
,
ir_
entity
*
ent
);
ir_node
*
be_new_RegParams
(
ir_graph
*
irg
,
ir_node
*
bl
,
int
n_out
);
ir_node
*
be_new_Barrier
(
ir_graph
*
irg
,
ir_node
*
bl
,
int
n
,
ir_node
*
in
[]);
...
...
@@ -367,16 +367,16 @@ int be_is_Barrier(const ir_node *irn);
*
* Returns the frame entity used by the be node
*/
entity
*
be_get_frame_entity
(
const
ir_node
*
irn
);
ir_
entity
*
be_get_frame_entity
(
const
ir_node
*
irn
);
ir_node
*
be_get_Reload_mem
(
const
ir_node
*
irn
);
ir_node
*
be_get_Spill_val
(
const
ir_node
*
irn
);
void
be_set_MemPerm_in_entity
(
const
ir_node
*
irn
,
int
n
,
entity
*
ent
);
entity
*
be_get_MemPerm_in_entity
(
const
ir_node
*
irn
,
int
n
);
void
be_set_MemPerm_in_entity
(
const
ir_node
*
irn
,
int
n
,
ir_
entity
*
ent
);
ir_
entity
*
be_get_MemPerm_in_entity
(
const
ir_node
*
irn
,
int
n
);
void
be_set_MemPerm_out_entity
(
const
ir_node
*
irn
,
int
n
,
entity
*
ent
);
entity
*
be_get_MemPerm_out_entity
(
const
ir_node
*
irn
,
int
n
);
void
be_set_MemPerm_out_entity
(
const
ir_node
*
irn
,
int
n
,
ir_
entity
*
ent
);
ir_
entity
*
be_get_MemPerm_out_entity
(
const
ir_node
*
irn
,
int
n
);
int
be_get_MemPerm_entity_arity
(
const
ir_node
*
irn
);
...
...
ir/be/bespillslots.c
View file @
2f8c9cee
...
...
@@ -501,14 +501,14 @@ static void do_java_coalescing(ss_env_t *env)
typedef
struct
_spill_slot_t
{
int
size
;
int
align
;
entity
*
entity
;
ir_
entity
*
entity
;
}
spill_slot_t
;
typedef
struct
_memperm_entry_t
{
ir_node
*
node
;
int
pos
;
entity
*
in
;
entity
*
out
;
ir_
entity
*
in
;
ir_
entity
*
out
;
struct
_memperm_entry_t
*
next
;
}
memperm_entry_t
;
...
...
@@ -542,9 +542,9 @@ static memperm_t *get_memperm(ss_env_t *env, ir_node *block) {
return
res
;
}
static
entity
*
create_stack_entity
(
ss_env_t
*
env
,
spill_slot_t
*
slot
)
{
static
ir_
entity
*
create_stack_entity
(
ss_env_t
*
env
,
spill_slot_t
*
slot
)
{
ir_type
*
frame
=
get_irg_frame_type
(
env
->
chordal_env
->
irg
);
entity
*
res
=
frame_alloc_area
(
frame
,
slot
->
size
,
slot
->
align
,
0
);
ir_
entity
*
res
=
frame_alloc_area
(
frame
,
slot
->
size
,
slot
->
align
,
0
);
// adjust size of the entity type...
ir_type
*
enttype
=
get_entity_type
(
res
);
...
...
ir/be/beverify.c
View file @
2f8c9cee
...
...
@@ -265,7 +265,7 @@ int be_verify_schedule(ir_graph *irg)
typedef
struct
_spill_t
{
ir_node
*
spill
;
entity
*
ent
;
ir_
entity
*
ent
;
}
spill_t
;
typedef
struct
{
...
...
@@ -289,7 +289,7 @@ static spill_t *find_spill(be_verify_spillslots_env_t *env, ir_node *node) {
return
set_find
(
env
->
spills
,
&
spill
,
sizeof
(
spill
),
HASH_PTR
(
node
));
}
static
spill_t
*
get_spill
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
entity
*
ent
)
{
static
spill_t
*
get_spill
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
ir_
entity
*
ent
)
{
spill_t
spill
,
*
res
;
int
hash
=
HASH_PTR
(
node
);
...
...
@@ -320,17 +320,17 @@ static ir_node *get_memory_edge(const ir_node *node) {
return
result
;
}
static
void
collect
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
ir_node
*
reload
,
entity
*
ent
);
static
void
collect
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
ir_node
*
reload
,
ir_
entity
*
ent
);
static
void
check_entity
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
entity
*
ent
)
{
static
void
check_entity
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
ir_
entity
*
ent
)
{
if
(
ent
==
NULL
)
{
ir_fprintf
(
stderr
,
"Verify warning: Node %+F in block %+F(%s) should have an entity assigned
\n
"
,
node
,
get_nodes_block
(
node
),
get_irg_dump_name
(
env
->
irg
));
}
}
static
void
collect_spill
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
ir_node
*
reload
,
entity
*
ent
)
{
entity
*
spillent
=
arch_get_frame_entity
(
env
->
arch_env
,
node
);
static
void
collect_spill
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
ir_node
*
reload
,
ir_
entity
*
ent
)
{
ir_
entity
*
spillent
=
arch_get_frame_entity
(
env
->
arch_env
,
node
);
check_entity
(
env
,
node
,
spillent
);
get_spill
(
env
,
node
,
ent
);
...
...
@@ -341,13 +341,13 @@ static void collect_spill(be_verify_spillslots_env_t *env, ir_node *node, ir_nod
}
}
static
void
collect_memperm
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
ir_node
*
reload
,
entity
*
ent
)
{
static
void
collect_memperm
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
ir_node
*
reload
,
ir_
entity
*
ent
)
{
int
i
,
arity
;
spill_t
spill
,
*
res
;
int
hash
=
HASH_PTR
(
node
);
int
out
;
ir_node
*
memperm
;
entity
*
spillent
;
ir_
entity
*
spillent
;
assert
(
is_Proj
(
node
));
...
...
@@ -373,13 +373,13 @@ static void collect_memperm(be_verify_spillslots_env_t *env, ir_node *node, ir_n
for
(
i
=
0
,
arity
=
be_get_MemPerm_entity_arity
(
memperm
);
i
<
arity
;
++
i
)
{
ir_node
*
arg
=
get_irn_n
(
memperm
,
i
+
1
);
entity
*
argent
=
be_get_MemPerm_in_entity
(
memperm
,
i
);
ir_
entity
*
argent
=
be_get_MemPerm_in_entity
(
memperm
,
i
);
collect
(
env
,
arg
,
memperm
,
argent
);
}
}
static
void
collect_memphi
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
ir_node
*
reload
,
entity
*
ent
)
{
static
void
collect_memphi
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
ir_node
*
reload
,
ir_
entity
*
ent
)
{
int
i
,
arity
;
spill_t
spill
,
*
res
;
int
hash
=
HASH_PTR
(
node
);
...
...
@@ -402,7 +402,7 @@ static void collect_memphi(be_verify_spillslots_env_t *env, ir_node *node, ir_no
}
}
static
void
collect
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
ir_node
*
reload
,
entity
*
ent
)
{
static
void
collect
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
ir_node
*
reload
,
ir_
entity
*
ent
)
{
if
(
be_is_Spill
(
node
))
{
collect_spill
(
env
,
node
,
reload
,
ent
);
}
else
if
(
is_Proj
(
node
))
{
...
...
@@ -430,7 +430,7 @@ static void collect_spills_walker(ir_node *node, void *data) {
if
(
arch_irn_class_is
(
arch_env
,
node
,
reload
))
{
ir_node
*
spill
=
get_memory_edge
(
node
);
entity
*
ent
;
ir_
entity
*
ent
;
if
(
spill
==
NULL
)
{
ir_fprintf
(
stderr
,
"Verify warning: No spill attached to reload %+F in block %+F(%s)
\n
"
,
...
...
@@ -483,7 +483,7 @@ static void check_lonely_spills(ir_node *node, void *data) {
if
(
be_is_Spill
(
node
)
||
(
is_Proj
(
node
)
&&
be_is_MemPerm
(
get_Proj_pred
(
node
))))
{
spill_t
*
spill
=
find_spill
(
env
,
node
);
if
(
be_is_Spill
(
node
))
{
entity
*
ent
=
arch_get_frame_entity
(
env
->
arch_env
,
node
);
ir_
entity
*
ent
=
arch_get_frame_entity
(
env
->
arch_env
,
node
);
check_entity
(
env
,
node
,
ent
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment