register options for cmdline
[libfirm] / ir / be / be.h
1
2 #ifndef _BE_MAIN_H
3 #define _BE_MAIN_H
4
5 /**
6  * Register the Firm backend command line options.
7  */
8 void be_opt_register(void);
9
10 /**
11  * Parse one backend argument.
12  */
13 int be_parse_arg(const char *arg);
14
15 /**
16  * Initialize the Firm backend. Must be run BEFORE init_firm()!
17  */
18 void be_init(void);
19
20 /**
21  * Main interface to the frontend.
22  */
23 void be_main(FILE *file_handle);
24
25 /** The type of the debug info retriever function. */
26 typedef const char *(*retrieve_dbg_func)(const dbg_info *dbg, unsigned *line);
27
28 /**
29  * Sets a debug info retriever.
30  *
31  * @param func   the debug retriever function.
32  */
33 void be_set_debug_retrieve(retrieve_dbg_func func);
34
35 /**
36  * Retrieve the debug info.
37  */
38 const char *be_retrieve_dbg_info(const dbg_info *dbg, unsigned *line);
39
40 typedef struct _be_main_env_t be_main_env_t;
41 typedef struct _be_irg_t be_irg_t;
42 typedef struct _be_options_t be_options_t;
43
44 #endif /* _BE_MAIN_H */