X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeifg.h;h=7844d15887bcae632f4db94561aac9fb8746e88a;hb=b334cdb542bb13dac5b787f196b7316c0ea3e630;hp=7130a1361684bd432fc660b9d2de61311311081a;hpb=7ff2c7085bd1043878cd3f2f1d05949f4f997cb3;p=libfirm diff --git a/ir/be/beifg.h b/ir/be/beifg.h index 7130a1361..7844d1588 100644 --- a/ir/be/beifg.h +++ b/ir/be/beifg.h @@ -46,4 +46,24 @@ int (be_ifg_degree)(const void *self, const ir_node *irn); *(count) != -1 ; \ *(count) = be_ifg_cliques_next(self, iter)) +/* + ____ _ + | _ \ _ _ _ __ ___ _ __ (_)_ __ __ _ + | | | | | | | '_ ` _ \| '_ \| | '_ \ / _` | + | |_| | |_| | | | | | | |_) | | | | | (_| | + |____/ \__,_|_| |_| |_| .__/|_|_| |_|\__, | + |_| |___/ +*/ + +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); + #endif /* _BEIFG_H */