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
d82ebc4e
Commit
d82ebc4e
authored
Jan 06, 2008
by
Michael Beck
Browse files
get_irn_MacroBlock() added
[r17165]
parent
116ce1b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/libfirm/irnode.h
View file @
d82ebc4e
...
...
@@ -403,6 +403,8 @@ ir_extblk *get_Block_extbb(const ir_node *block);
void
set_Block_extbb
(
ir_node
*
block
,
ir_extblk
*
extblk
);
/** Get the Macro Block header of a (sub-) block. */
ir_node
*
get_Block_MacroBlock
(
const
ir_node
*
block
);
/** Get the Macro Block header of a node. */
ir_node
*
get_irn_MacroBlock
(
const
ir_node
*
n
);
/** Returns the ir_graph this Block belongs to. */
ir_graph
*
get_Block_irg
(
const
ir_node
*
block
);
/** Returns non-zero if the block has an assigned label. */
...
...
ir/ir/irnode.c
View file @
d82ebc4e
...
...
@@ -877,6 +877,13 @@ ir_node *get_Block_MacroBlock(const ir_node *block) {
return
mbh
;
}
/* returns the macro block header of a node. */
ir_node
*
get_irn_MacroBlock
(
const
ir_node
*
n
)
{
if
(
!
is_Block
(
n
))
n
=
get_nodes_block
(
n
);
return
get_Block_MacroBlock
(
n
);
}
/* returns the graph of a Block. */
ir_graph
*
get_Block_irg
(
const
ir_node
*
block
)
{
assert
(
is_Block
(
block
));
...
...
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