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
4856351a
Commit
4856351a
authored
May 26, 2008
by
Michael Beck
Browse files
add_Block_phi() implemented
[r19770]
parent
907510bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/libfirm/irnode.h
View file @
4856351a
...
@@ -412,6 +412,8 @@ void set_Block_label(ir_node *block, ir_label_t label);
...
@@ -412,6 +412,8 @@ void set_Block_label(ir_node *block, ir_label_t label);
ir_node
*
get_Block_phis
(
const
ir_node
*
block
);
ir_node
*
get_Block_phis
(
const
ir_node
*
block
);
/** Sets the head of the Phi list for this block. */
/** Sets the head of the Phi list for this block. */
void
set_Block_phis
(
ir_node
*
block
,
ir_node
*
phi
);
void
set_Block_phis
(
ir_node
*
block
,
ir_node
*
phi
);
/** Add a Phi node to the list of Block Phi's. */
void
add_Block_phi
(
ir_node
*
block
,
ir_node
*
phi
);
/** Return the number of Keep alive node. */
/** Return the number of Keep alive node. */
int
get_End_n_keepalives
(
const
ir_node
*
end
);
int
get_End_n_keepalives
(
const
ir_node
*
end
);
...
...
ir/ir/irnode_t.h
View file @
4856351a
...
@@ -952,6 +952,14 @@ _get_Phi_next(const ir_node *phi) {
...
@@ -952,6 +952,14 @@ _get_Phi_next(const ir_node *phi) {
return
phi
->
attr
.
phi
.
next
;
return
phi
->
attr
.
phi
.
next
;
}
}
/** Add a Phi node to the list of Block Phi's. */
static
INLINE
void
_add_Block_phi
(
ir_node
*
block
,
ir_node
*
phi
)
{
_set_Phi_next
(
phi
,
_get_Block_phis
(
block
));
_set_Block_phis
(
block
,
phi
);
}
/* this section MUST contain all inline functions */
/* this section MUST contain all inline functions */
#define is_ir_node(thing) _is_ir_node(thing)
#define is_ir_node(thing) _is_ir_node(thing)
#define get_irn_intra_arity(node) _get_irn_intra_arity(node)
#define get_irn_intra_arity(node) _get_irn_intra_arity(node)
...
@@ -1070,8 +1078,10 @@ _get_Phi_next(const ir_node *phi) {
...
@@ -1070,8 +1078,10 @@ _get_Phi_next(const ir_node *phi) {
#define get_irn_dbg_info(node) _get_irn_dbg_info(node)
#define get_irn_dbg_info(node) _get_irn_dbg_info(node)
#define set_irn_dbg_info(node, db) _set_irn_dbg_info(node, db)
#define set_irn_dbg_info(node, db) _set_irn_dbg_info(node, db)
#define set_Block_phis(node, phi) _set_Block_phis(node, phi)
#define set_Block_phis(block, phi) _set_Block_phis(block, phi)
#define get_Block_phis(node) _get_Block_phis(node)
#define get_Block_phis(block) _get_Block_phis(block
#define add_Block_phi(block, phi) _add_block_phi(block, phi)
#define set_Phi_next(node, phi) _set_Phi_next(node, phi)
#define set_Phi_next(node, phi) _set_Phi_next(node, phi)
#define get_Phi_next(node) _get_Phi_next(node)
#define get_Phi_next(node) _get_Phi_next(node)
...
...
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