Commit d4ae10ab authored by Michael Beck's avatar Michael Beck
Browse files

added get_Block_extbb() and set_Block_extbb()

[r5918]
parent 0df8740c
......@@ -614,7 +614,6 @@ get_Block_cfgpred_arr (ir_node *node)
return (ir_node **)&(get_irn_in(node)[1]);
}
int
get_Block_n_cfgpreds (ir_node *node) {
assert ((node->op == op_Block));
......@@ -732,6 +731,16 @@ int (is_Block_dead)(const ir_node *block) {
return _is_Block_dead(block);
}
ir_extblk *get_Block_extbb(const ir_node *block) {
assert(is_Block(block));
return block->attr.block.extblk;
}
void set_Block_extbb(ir_node *block, ir_extblk *extblk) {
assert(is_Block(block));
block->attr.block.extblk = extblk;
}
void
set_Start_irg(ir_node *node, ir_graph *irg) {
assert(node->op == op_Start);
......
......@@ -20,6 +20,7 @@
# include "irop.h"
# include "irmode.h"
# include "type.h"
# include "irextbb.h"
# include "dbginfo.h"
/**
......@@ -273,6 +274,11 @@ ir_node *get_Block_cg_cfgpred(ir_node * node, int pos);
/* frees the memory. */
void remove_Block_cg_cfgpred_arr(ir_node * node);
/** returns the extended basic block a block belongs to */
ir_extblk *get_Block_extbb(const ir_node *block);
/** sets the extended basic block a block belongs to */
void set_Block_extbb(ir_node *block, ir_extblk *extblk);
/** Return the number of Keep alive node. */
int get_End_n_keepalives(ir_node *end);
......
Supports Markdown
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