Added support for SymConst(ofs_ent)
[libfirm] / ir / be / beifg.h
index 7130a13..ffac97b 100644 (file)
 #ifndef _BEIFG_H
 #define _BEIFG_H
 
+#include "becopyopt.h"
+
+#ifdef WITH_LIBCORE
+#include <libcore/lc_opts.h>
+#include <libcore/lc_opts_enum.h>
+#include <libcore/lc_timing.h>
+#endif /* WITH_LIBCORE */
+
 #include "firm_types.h"
 
 typedef struct _be_ifg_impl_t   be_ifg_impl_t;
@@ -46,4 +54,36 @@ 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);
+
+/*
+        ____                        _
+       |  _ \ _   _ _ __ ___  _ __ (_)_ __   __ _
+       | | | | | | | '_ ` _ \| '_ \| | '_ \ / _` |
+       | |_| | |_| | | | | | | |_) | | | | | (_| |
+       |____/ \__,_|_| |_| |_| .__/|_|_| |_|\__, |
+                          |_|            |___/
+*/
+
+typedef struct _be_ifg_dump_dot_cb_t {
+       int  (*is_dump_node)(void *self, ir_node *irn);
+       void (*graph_attr)(FILE *f, void *self);
+       void (*node_attr)(FILE *f, void *self, ir_node *irn);
+       void (*edge_attr)(FILE *f, void *self, ir_node *from, ir_node *to);
+       void (*at_begin)(FILE *file, void *self);
+       void (*at_end)(FILE *file, void *self);
+} 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 */