#include "irtypeinfo.h"
#include "irprog.h"
#include "pseudo_irg.h"
+#include "type_t.h"
+#include "tr_inheritance.h"
#include "irloop.h"
+#include "execution_frequency.h"
#include "obst.h"
#include "pset.h"
#include "set.h"
-#include "type_t.h"
#define FRAME_TP_SUFFIX "frame_tp"
struct ir_node *cstore; /**< constant store -- no more needed!! */
struct ir_node *frame; /**< method's frame */
struct ir_node *globals; /**< pointer to the data segment containing all
- globals as well as global procedures. */
+ globals as well as global procedures. */
struct ir_node *initial_mem; /**< initial memory of this graph */
struct ir_node *args; /**< methods arguments */
- struct ir_node **proj_args; /**< projs off the methods arguments */
+ struct ir_node **proj_args; /**< projs of the methods arguments */
struct ir_node *bad; /**< bad node of this ir_graph, the one and
only in this graph */
struct ir_node *no_mem; /**< NoMem node of this ir_graph, the one and
- only in this graph */
+ only in this graph */
/* GL removed: we need unknown with mode for analyses. */
/* struct ir_node *unknown;*/ /**< unknown node of this ir_graph */
struct obstack *obst; /**< obstack where all of the ir_nodes live */
- struct ir_node *current_block; /**< block for newly gen_*()-erated
- ir_nodes */
+ struct ir_node *current_block; /**< block for newly gen_*()-erated ir_nodes */
+ struct obstack *extbb_obst; /**< obstack for extended basic block info */
/* -- Fields indicating different states of irgraph -- */
irg_phase_state phase_state; /**< compiler phase */
op_pin_state op_pin_state_pinned; /**< Flag for status of nodes */
irg_outs_state outs_state; /**< Out edges. */
irg_dom_state dom_state; /**< Dominator information */
- irg_typeinfo_state typeinfo_state; /**< Validity of type information */
+ ir_typeinfo_state typeinfo_state; /**< Validity of type information */
irg_callee_info_state callee_info_state; /**< Validity of callee information */
irg_inline_property inline_property; /**< How to handle inlineing. */
irg_loopinfo_state loopinfo_state; /**< state of loop information */
+ exec_freq_state execfreq_state; /**< state of execution frequency information */
+ ir_class_cast_state class_cast_state; /**< kind of cast operations in code. */
+ irg_extblk_info_state extblk_state; /**< state of extended basic block info */
/* -- Fields for construction -- */
#if USE_EXPLICIT_PHI_IN_STACK
readable. */
#endif
-#ifdef FIRM_EDGES_INPLACE
- irg_edge_info_t edge_info;
+#if FIRM_EDGES_INPLACE
+ irg_edge_info_t edge_info; /**< edge info for automatic outs */
#endif
};
static INLINE void
_set_irg_outs_inconsistent(ir_graph *irg) {
- irg->outs_state = outs_inconsistent;
+ if (irg->outs_state == outs_consistent)
+ irg->outs_state = outs_inconsistent;
}
static INLINE irg_dom_state
irg->loopinfo_state = s;
}
+static INLINE void
+_set_irg_loopinfo_inconsistent(ir_graph *irg) {
+ irg->loopinfo_state &= ~loopinfo_valid;
+}
+
static INLINE void
_set_irg_pinned(ir_graph *irg, op_pin_state p) {
irg->op_pin_state_pinned = p;
#define set_irg_dom_inconsistent(irg) _set_irg_dom_inconsistent(irg)
#define get_irg_loopinfo_state(irg) _get_irg_loopinfo_state(irg)
#define set_irg_loopinfo_state(irg, s) _set_irg_loopinfo_state(irg, s)
+#define set_irg_loopinfo_inconsistent(irg) _set_irg_loopinfo_inconsistent(irg)
#define set_irg_pinned(irg, p) _set_irg_pinned(irg, p)
#define get_irg_callee_info_state(irg) _get_irg_callee_info_state(irg)
#define set_irg_callee_info_state(irg, s) _set_irg_callee_info_state(irg, s)