# define _IRPROG_T_H_
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "firm_config.h"
#endif
#include "irprog.h"
irp_callgraph_state callgraph_state; /**< State of the callgraph. */
struct ir_loop *outermost_cg_loop; /**< For callgraph analysis: entry point
to looptree over callgraph. */
- int max_callgraph_loop_depth;
- int max_callgraph_recursion_depth;
+ int max_callgraph_loop_depth; /**< needed in callgraph. */
+ int max_callgraph_recursion_depth; /**< needed in callgraph. */
+ int max_method_execution_frequency; /**< needed in callgraph. */
#ifdef DEBUG_libfirm
long max_node_nr; /**< to generate unique numbers for nodes. */
#endif
};
-INLINE void remove_irp_type_from_list (type *typ);
+void remove_irp_type_from_list (type *typ);
static INLINE type *
__get_glob_type(void) {
static INLINE ir_graph *
__get_irp_irg(int pos){
- assert (irp && irp->graphs);
if (get_visit_pseudo_irgs()) return get_irp_allirg(pos);
+ assert(0 <= pos && pos <= get_irp_n_irgs());
return irp->graphs[pos];
}