#include "irop_t.h"
#include "irgraph_t.h"
#include "irflag_t.h"
-#include "firm_common_t.h"
#include "array.h"
/**
alloc_attr *get_irn_alloc_attr (ir_node *node);
free_attr *get_irn_free_attr (ir_node *node);
symconst_attr *get_irn_symconst_attr (ir_node *node);
-ir_type *get_irn_call_attr (ir_node *node);
-ir_type *get_irn_funccall_attr (ir_node *node);
+call_attr *get_irn_call_attr (ir_node *node);
sel_attr *get_irn_sel_attr (ir_node *node);
phi_attr *get_irn_phi_attr (ir_node *node);
block_attr *get_irn_block_attr (ir_node *node);
}
}
+static inline ir_graph *
+_get_Block_irg(const ir_node *block) {
+ assert(is_Block(block) || is_Bad(block));
+ return block->attr.irg.irg;
+}
+
static inline tarval *_get_Const_tarval(const ir_node *node) {
assert(_get_irn_op(node) == op_Const);
return node->attr.con.tv;
#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)