}
-int __interprocedural_view = false;
+int firm_interprocedural_view = 0;
int (get_interprocedural_view)(void) {
return _get_interprocedural_view();
}
void (set_interprocedural_view)(int state) {
- __interprocedural_view = state;
+ firm_interprocedural_view = state;
/* set function vectors for faster access */
if (state) {
static ident *frame_type_suffix = NULL;
/* initialize the IR graph module */
-void init_irgraph(void) {
+void firm_init_irgraph(void) {
frame_type_suffix = new_id_from_str(FRAME_TP_SUFFIX);
- forbid_new_data = 1;
+ forbid_new_data = 1;
}
/**
iropt.c */
res->outs = NULL;
- res->phase_state = phase_building;
- res->op_pin_state_pinned = op_pin_state_pinned;
- res->outs_state = outs_none;
- res->dom_state = dom_none;
- res->typeinfo_state = ir_typeinfo_none;
+ res->inline_property = irg_inline_any;
+ res->additional_properties = mtp_property_inherited; /* inherited from type */
+
+ res->phase_state = phase_building;
+ res->irg_pinned_state = op_pin_state_pinned;
+ res->outs_state = outs_none;
+ res->dom_state = dom_none;
+ res->typeinfo_state = ir_typeinfo_none;
set_irp_typeinfo_inconsistent(); /* there is a new graph with typeinfo_none. */
- res->loopinfo_state = loopinfo_none;
- res->class_cast_state = ir_class_casts_transitive;
- res->extblk_state = ir_extblk_info_none;
+ res->callee_info_state = irg_callee_info_none;
+ res->loopinfo_state = loopinfo_none;
+ res->execfreq_state = exec_freq_none;
+ res->class_cast_state = ir_class_casts_transitive;
+ res->extblk_state = ir_extblk_info_none;
/*-- Type information for the procedure of the graph --*/
res->ent = ent;
add_immBlock_pred (first_block, projX);
res->method_execution_frequency = -1;
+ res->estimated_node_count = 0;
return res;
}
obstack_init (res->obst);
res->extbb_obst = NULL;
- res->phase_state = phase_building;
- res->op_pin_state_pinned = op_pin_state_pinned;
- res->extblk_state = ir_extblk_info_none;
+ res->phase_state = phase_building;
+ res->irg_pinned_state = op_pin_state_pinned;
+ res->extblk_state = ir_extblk_info_none;
res->value_table = new_identities (); /* value table for global value
numbering for optimizing use in
_set_irg_inline_property(irg, s);
}
+unsigned
+(get_irg_additional_properties)(const ir_graph *irg) {
+ return _get_irg_additional_properties(irg);
+}
+
+void
+(set_irg_additional_properties)(ir_graph *irg, unsigned property_mask) {
+ _set_irg_additional_properties(irg, property_mask);
+}
+
+void
+(set_irg_additional_property)(ir_graph *irg, mtp_additional_property flag) {
+ _set_irg_additional_property(irg, flag);
+}
+
void
(set_irg_link)(ir_graph *irg, void *thing) {
_set_irg_link(irg, thing);
return irg->loc_descriptions ? irg->loc_descriptions[n] : NULL;
}
+/* Returns a estimated node count of the irg. */
+unsigned (get_irg_estimated_node_cnt)(const ir_graph *irg) {
+ return _get_irg_estimated_node_cnt(irg);
+}
+
/* register additional space in an IR graph */
size_t register_additional_graph_data(size_t size)
{