1 /*************************************************************************
2 * Program: grgen_dumper.c
3 * Function: Dumps parts of a firm graph (those which have to be extracted
4 * as search and replace patterns) as a grgen rule.
5 * Author: Andreas Schoesser
7 *************************************************************************/
10 #define GRGEN_DUMPER_H
12 #include "create_pattern_t.h"
15 typedef struct // Holds information needed througout the usage of a grgen dumper instance
17 FILE *output_file; // The file the grgen rules will be dumped to
22 grgen_dumper_env_t *init_grgen_dumper(char *file, int append);
23 int dump_irgraph_grgen(grgen_dumper_env_t *grgen_dumper_env, graph_ana_info_t *walker_info);
24 void deinit_grgen_dumper(grgen_dumper_env_t *grgen_dumper_env);
25 void dump_irgraph_complete_grgen(ir_graph *irg, char *filename, int append);