Commit 93ecd395 authored by Michael Beck's avatar Michael Beck
Browse files

- add an inline version of get_Block_irg()

[r26180]
parent 4fc85bd4
......@@ -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) {
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment