#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 ir_graph *
+static inline ir_graph *
_get_Block_irg(const ir_node *block) {
- assert(is_Block(block));
- return block->attr.block.irg;
+ assert(is_Block(block) || is_Bad(block));
+ return block->attr.irg.irg;
}
static inline tarval *_get_Const_tarval(const ir_node *node) {