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
e93c2b0f
Commit
e93c2b0f
authored
Feb 28, 2008
by
Michael Beck
Browse files
set_Block_MacroBlock() added
[r17913]
parent
56cc2e45
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/libfirm/irnode.h
View file @
e93c2b0f
...
...
@@ -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
);
/** Set the Macro Block header of a (sub-) block. */
void
set_Block_MacroBlock
(
ir_node
*
block
,
ir_node
*
mbh
);
/** 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/ir/irnode.c
View file @
e93c2b0f
...
...
@@ -806,7 +806,7 @@ void set_Block_extbb(ir_node *block, ir_extblk *extblk) {
block
->
attr
.
block
.
extblk
=
extblk
;
}
/*
r
eturns the macro block header of a block.
*/
/*
R
eturns the macro block header of a block.*/
ir_node
*
get_Block_MacroBlock
(
const
ir_node
*
block
)
{
ir_node
*
mbh
;
assert
(
is_Block
(
block
));
...
...
@@ -817,6 +817,13 @@ ir_node *get_Block_MacroBlock(const ir_node *block) {
return
mbh
;
}
/* Sets the macro block header of a block. */
void
set_Block_MacroBlock
(
ir_node
*
block
,
ir_node
*
mbh
)
{
assert
(
is_Block
(
block
));
assert
(
is_Block
(
mbh
));
set_irn_n
(
block
,
-
1
,
mbh
);
}
/* returns the macro block header of a node. */
ir_node
*
get_irn_MacroBlock
(
const
ir_node
*
n
)
{
if
(
!
is_Block
(
n
))
{
...
...
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