libFirm
|
Typedefs | |
typedef void(* | ir_prog_dump_func )(FILE *out) |
type for dumpers that dump information about the whole program More... | |
typedef void(* | ir_graph_dump_func )(FILE *out, ir_graph *graph) |
type for graph dumpers More... | |
Functions | |
void | dump_ir_graph (ir_graph *graph, const char *suffix) |
Convenience interface for dumping a graph as vcg file. More... | |
void | dump_ir_prog_ext (ir_prog_dump_func func, const char *suffix) |
Convenience interface for dumping the whole compilation-unit/program. More... | |
void | dump_ir_graph_ext (ir_graph_dump_func func, ir_graph *graph, const char *suffix) |
Convenience interface for dumping graphs. More... | |
void | dump_all_ir_graphs (const char *suffix) |
A walker that calls a dumper for each graph in the program. More... | |
void | ir_set_dump_path (const char *path) |
Specifies output path for the dump_ir_graph function. More... | |
void | ir_set_dump_filter (const char *name) |
Sets a prefix filter for output functions. More... | |
const char * | ir_get_dump_filter (void) |
Returns the prefix filter set with ir_set_dump_filter. More... | |
typedef void(* ir_graph_dump_func)(FILE *out, ir_graph *graph) |
typedef void(* ir_prog_dump_func)(FILE *out) |
void dump_all_ir_graphs | ( | const char * | suffix | ) |
A walker that calls a dumper for each graph in the program.
suffix | A suffix for the file name. |
void dump_ir_graph | ( | ir_graph * | graph, |
const char * | suffix | ||
) |
Convenience interface for dumping a graph as vcg file.
For details on how the filename is constructed see dump_ir_graph_ext
void dump_ir_graph_ext | ( | ir_graph_dump_func | func, |
ir_graph * | graph, | ||
const char * | suffix | ||
) |
Convenience interface for dumping graphs.
The filename is constructed by combining a counter, the name of the graphs entity and the given suffix
. The file-extensions is determined by looking at mime_type
. The file is stored into the directory specified by ir_set_dump_path
func | Dumper. Usually one of dump_cfg, dump_loop_tree, dump_ir_graph_file |
graph | the graph to dump |
suffix | suffix |
void dump_ir_prog_ext | ( | ir_prog_dump_func | func, |
const char * | suffix | ||
) |
Convenience interface for dumping the whole compilation-unit/program.
The filename is constructed by combining a counter, the name of the current ir_prog and the given suffix
. The file-extensions is determined by looking at mime_type
. The file is stored into the directory specified by ir_set_dump_path
func | Dumper. Usually one of dump_callgraph, dump_typegraph, dump_class_hierarchy, dump_types_as_text, dump_globals_as_text |
suffix | Suffix to append to the name |
const char* ir_get_dump_filter | ( | void | ) |
Returns the prefix filter set with ir_set_dump_filter.
void ir_set_dump_filter | ( | const char * | name | ) |
Sets a prefix filter for output functions.
All graph dumpers check this name. If the name is != "" and not a prefix of the graph to be dumped, the dumper does not dump the graph.
name | The prefix of the name of the method entity to be dumped. |
void ir_set_dump_path | ( | const char * | path | ) |
Specifies output path for the dump_ir_graph function.