fix missing PTR_TO_INT macros in release mode
[libfirm] / ir / ir / irgraph.c
index 783d7a7..cd5aabb 100644 (file)
 #include "irouts.h"
 #include "irhooks.h"
 #include "irtools.h"
+#include "util.h"
 #include "irgwalk.h"
 #include "irbackedge_t.h"
 #include "iredges_t.h"
 #include "type_t.h"
 #include "irmemory.h"
-#include "irphase.h"
 
 #define INITIAL_IDX_IRN_MAP_SIZE 1024
 
@@ -189,12 +189,8 @@ ir_graph *new_r_ir_graph(ir_entity *ent, int n_loc)
        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 --*/
@@ -278,7 +274,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 */
@@ -387,7 +382,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);
@@ -649,41 +643,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_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);
@@ -823,26 +782,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)
 {