added get_Block_extbb() and set_Block_extbb()
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 31 May 2005 09:11:58 +0000 (09:11 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 31 May 2005 09:11:58 +0000 (09:11 +0000)
[r5918]

ir/ir/irnode.c
ir/ir/irnode.h

index d432357..aa7bb48 100644 (file)
@@ -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);
index c8cc39e..5205f46 100644 (file)
@@ -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);