X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fir%2Firgraph.c;h=df1b36af9e036a86b6b6e0e2d1ff3cf5dc7764ef;hb=917ab46635e6c68aa98c69f6801caf36df29d9c5;hp=7dc3eca096196d07a862b30c26cfbb03acf55c5c;hpb=dc3b229f63a53f48c2ad14809e065a3d67314541;p=libfirm diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index 7dc3eca09..df1b36af9 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -46,7 +46,6 @@ #include "iredges_t.h" #include "type_t.h" #include "irmemory.h" -#include "irphase.h" #define INITIAL_IDX_IRN_MAP_SIZE 1024 @@ -186,17 +185,11 @@ ir_graph *new_r_ir_graph(ir_entity *ent, int n_loc) res->additional_properties = mtp_property_inherited; /* inherited from type */ res->irg_pinned_state = op_pin_state_pinned; - res->dom_state = dom_none; - res->pdom_state = dom_none; res->typeinfo_state = ir_typeinfo_none; set_irp_typeinfo_inconsistent(); /* there is a new graph with typeinfo_none. */ res->callee_info_state = irg_callee_info_none; - res->loopinfo_state = loopinfo_none; res->class_cast_state = ir_class_casts_transitive; - res->extblk_state = ir_extblk_info_none; - res->execfreq_state = exec_freq_none; res->fp_model = fp_model_precise; - res->entity_usage_state = ir_entity_usage_not_computed; res->mem_disambig_opt = aa_opt_inherited; /*-- Type information for the procedure of the graph --*/ @@ -280,7 +273,6 @@ ir_graph *new_const_code_irg(void) res->phase_state = phase_building; res->irg_pinned_state = op_pin_state_pinned; - res->extblk_state = ir_extblk_info_none; res->fp_model = fp_model_precise; /* value table for global value numbering for optimizing use in iropt.c */ @@ -389,7 +381,6 @@ ir_graph *create_irg_copy(ir_graph *irg) res->phase_state = irg->phase_state; res->irg_pinned_state = irg->irg_pinned_state; - res->extblk_state = ir_extblk_info_none; res->fp_model = irg->fp_model; new_identities(res); @@ -651,56 +642,6 @@ op_pin_state (get_irg_pinned)(const ir_graph *irg) return _get_irg_pinned(irg); } -irg_extblk_info_state (get_irg_extblk_state)(const ir_graph *irg) -{ - return _get_irg_extblk_state(irg); -} - -void (set_irg_extblk_inconsistent)(ir_graph *irg) -{ - _set_irg_extblk_inconsistent(irg); -} - -irg_dom_state (get_irg_dom_state)(const ir_graph *irg) -{ - return _get_irg_dom_state(irg); -} - -irg_dom_state (get_irg_postdom_state)(const ir_graph *irg) -{ - return _get_irg_postdom_state(irg); -} - -void (set_irg_doms_inconsistent)(ir_graph *irg) -{ - _set_irg_doms_inconsistent(irg); -} - -irg_loopinfo_state (get_irg_loopinfo_state)(const ir_graph *irg) -{ - return _get_irg_loopinfo_state(irg); -} - -void (set_irg_loopinfo_state)(ir_graph *irg, irg_loopinfo_state s) -{ - _set_irg_loopinfo_state(irg, s); -} - -void (set_irg_loopinfo_inconsistent)(ir_graph *irg) -{ - _set_irg_loopinfo_inconsistent(irg); -} - -void set_irp_loopinfo_inconsistent(void) -{ - size_t i, n; - for (i = 0, n = get_irp_n_irgs(); i < n; ++i) { - set_irg_loopinfo_inconsistent(get_irp_irg(i)); - } -} - - - void (set_irg_pinned)(ir_graph *irg, op_pin_state p) { _set_irg_pinned(irg, p); @@ -840,26 +781,6 @@ void *get_irg_loc_description(ir_graph *irg, int n) return irg->loc_descriptions ? irg->loc_descriptions[n] : NULL; } -void irg_register_phase(ir_graph *irg, ir_phase_id id, ir_phase *phase) -{ - assert(id <= PHASE_LAST); - assert(irg->phases[id] == NULL); - irg->phases[id] = phase; -} - -void irg_invalidate_phases(ir_graph *irg) -{ - int p; - for (p = 0; p <= PHASE_LAST; ++p) { - ir_phase *phase = irg->phases[p]; - if (phase == NULL) - continue; - - phase_free(phase); - irg->phases[p] = NULL; - } -} - #ifndef NDEBUG void ir_reserve_resources(ir_graph *irg, ir_resources_t resources) {