moved firmext code into the backend dir
[libfirm] / ir / be / grgen / simd / grgen_dumper.h
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
6 * Date:     2006-12-07
7 *************************************************************************/
8
9 #ifndef GRGEN_DUMPER_H
10 #define GRGEN_DUMPER_H
11
12 #include "create_pattern_t.h"
13
14
15 typedef struct                  // Holds information needed througout the usage of a grgen dumper instance
16 {
17         FILE *output_file;      // The file the grgen rules will be dumped to
18 } grgen_dumper_env_t;
19
20
21
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);
26
27 #endif