X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firprog_t.h;h=46f2d438b5560ce9910c702cd4389877b5fd31e8;hb=cb91bddc9cacdab7c28e4336847bd3dc248aa549;hp=83f15468806f0764e50d02b0d67e44cde7c7be1a;hpb=1f19a7c1dc58a7f0623caf0745b39fd13f08e72f;p=libfirm diff --git a/ir/ir/irprog_t.h b/ir/ir/irprog_t.h index 83f154688..46f2d438b 100644 --- a/ir/ir/irprog_t.h +++ b/ir/ir/irprog_t.h @@ -61,6 +61,8 @@ struct ir_prog { 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; #ifdef DEBUG_libfirm long max_node_nr; /**< to generate unique numbers for nodes. */ @@ -78,14 +80,12 @@ __get_glob_type(void) { static INLINE int __get_irp_n_irgs(void) { assert (irp && irp->graphs); - /* Strangely the first element of the array is NULL. Why?? */ return (ARR_LEN((irp)->graphs)); } static INLINE ir_graph * __get_irp_irg(int pos){ assert (irp && irp->graphs); - /* Strangely the first element of the array is NULL. Why?? */ return irp->graphs[pos]; } @@ -93,14 +93,12 @@ __get_irp_irg(int pos){ static INLINE int __get_irp_n_types (void) { assert (irp && irp->types); - /* Strangely the first element of the array is NULL. Why?? */ return (ARR_LEN((irp)->types)); } static INLINE type * __get_irp_type(int pos) { assert (irp && irp->types); - /* Strangely the first element of the array is NULL. Why?? */ /* Don't set the skip_tid result so that no double entries are generated. */ return skip_tid(irp->types[pos]); }