X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeifg.h;h=ffac97bba87acba7b144d7dbe9f9890963286a3a;hb=b9d45e08e23bcf058fa8f2d9e18dd78e8cccd044;hp=7844d15887bcae632f4db94561aac9fb8746e88a;hpb=07d8c1a354a04f227cf7522a33babb64de585eb6;p=libfirm diff --git a/ir/be/beifg.h b/ir/be/beifg.h index 7844d1588..ffac97bba 100644 --- a/ir/be/beifg.h +++ b/ir/be/beifg.h @@ -10,6 +10,14 @@ #ifndef _BEIFG_H #define _BEIFG_H +#include "becopyopt.h" + +#ifdef WITH_LIBCORE +#include +#include +#include +#endif /* WITH_LIBCORE */ + #include "firm_types.h" typedef struct _be_ifg_impl_t be_ifg_impl_t; @@ -46,6 +54,14 @@ int (be_ifg_degree)(const void *self, const ir_node *irn); *(count) != -1 ; \ *(count) = be_ifg_cliques_next(self, iter)) +typedef struct { + int n_nodes; + int n_edges; + int n_comps; +} be_ifg_stat_t; + +void be_ifg_stat(const be_chordal_env_t *cenv, be_ifg_stat_t *stat); + /* ____ _ | _ \ _ _ _ __ ___ _ __ (_)_ __ __ _ @@ -65,5 +81,9 @@ typedef struct _be_ifg_dump_dot_cb_t { } be_ifg_dump_dot_cb_t; void be_ifg_dump_dot(be_ifg_t *ifg, ir_graph *irg, FILE *file, const be_ifg_dump_dot_cb_t *cb, void *self); +void be_ifg_check_sorted(const be_ifg_t *ifg); +void be_ifg_check_sorted_to_file(const be_ifg_t *ifg, FILE *f); +void be_ifg_check_performance(be_chordal_env_t *chordal_env); + #endif /* _BEIFG_H */