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
93ecd395
Commit
93ecd395
authored
Jun 24, 2009
by
Michael Beck
Browse files
- add an inline version of get_Block_irg()
[r26180]
parent
4fc85bd4
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ir/irnode.c
View file @
93ecd395
...
...
@@ -798,9 +798,8 @@ ir_node *get_irn_MacroBlock(const ir_node *n) {
}
/* returns the graph of a Block. */
ir_graph
*
get_Block_irg
(
const
ir_node
*
block
)
{
assert
(
is_Block
(
block
));
return
block
->
attr
.
block
.
irg
;
ir_graph
*
(
get_Block_irg
)(
const
ir_node
*
block
)
{
return
_get_Block_irg
(
block
);
}
ir_entity
*
create_Block_entity
(
ir_node
*
block
)
{
...
...
ir/ir/irnode_t.h
View file @
93ecd395
...
...
@@ -535,6 +535,12 @@ _is_Block_dead(const ir_node *block) {
}
}
static
ir_graph
*
_get_Block_irg
(
const
ir_node
*
block
)
{
assert
(
is_Block
(
block
));
return
block
->
attr
.
block
.
irg
;
}
static
inline
tarval
*
_get_Const_tarval
(
const
ir_node
*
node
)
{
assert
(
_get_irn_op
(
node
)
==
op_Const
);
return
node
->
attr
.
con
.
tv
;
...
...
@@ -736,6 +742,7 @@ _is_arg_Proj(const ir_node *node) {
#define Block_block_visited(node) _Block_block_visited(node)
#define set_Block_dead(block) _set_Block_dead(block)
#define is_Block_dead(block) _is_Block_dead(block)
#define get_Block_irg(block) _get_Block_irg(block)
#define get_Const_tarval(node) _get_Const_tarval(node)
#define is_Const_null(node) _is_Const_null(node)
#define is_Const_one(node) _is_Const_one(node)
...
...
Write
Preview
Markdown
is supported
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