X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firdump.h;h=ae4bbe0d964292434e113df8f8a37536b0d17cc0;hb=fc7e44183102c47e31152fc136a35034c1820873;hp=2532f566898431897ca9d48dbcb2c2de45d23326;hpb=21a6507082d24281268b91021fb1e50cf6e106b6;p=libfirm diff --git a/ir/ir/irdump.h b/ir/ir/irdump.h index 2532f5668..ae4bbe0d9 100644 --- a/ir/ir/irdump.h +++ b/ir/ir/irdump.h @@ -42,6 +42,16 @@ /* GRAPH DUMPERS */ /* **************************************************************************** */ +/** + * This hook is called to dump the vcg attributes of a node to a file. + * If this function returns zero, the default attributes are added, else + * removed. + */ +typedef int (*DUMP_NODE_VCGATTR_FUNC)(FILE *F, ir_node *n); + +/** Set the node_vcgattr hook. */ +void set_dump_node_vcgattr_hook(DUMP_NODE_VCGATTR_FUNC hook); + /** Dump a firm graph. * * @param irg The firm graph to be dumped. @@ -272,6 +282,7 @@ typedef enum { dump_verbosity_entconsts = 0x00000020, /**< dump entity constants */ dump_verbosity_accessStats = 0x00000100, /**< dump entity access statistics */ + dump_verbosity_csv = 0x00000200, /**< dump access statistics as comma separated list */ dump_verbosity_noClassTypes = 0x00001000, /**< dump no class types */ dump_verbosity_noStructTypes = 0x00002000, /**< dump no struct types */ @@ -291,7 +302,8 @@ typedef enum { dump_verbosity_onlyPrimitiveTypes = 0x000BF000, /**< dump only primitive types */ dump_verbosity_onlyEnumerationTypes=0x0007F000, /**< dump only enumeration types */ - dump_verbosity_max = 0x48888887 /**< turn on all verbosity. */ + dump_verbosity_max = 0x4FF00FFE /**< turn on all verbosity. + @@@ Because of a bug in gcc 3.2 we can not set the first two bits. */ } dump_verbosity; @@ -322,7 +334,8 @@ void dump_type (type *tp); * the global type nor frame types or the like. * * The file name is the program name (get_irp_name()), or 'TextTypes' - * if the program name is not set appended by -types.txt. + * if the program name is not set, appended by -types.txt. + * For verbosity see the documentation of the verbosity flags above. */ void dump_types_as_text(unsigned verbosity, const char *suffix);