fixed addressmode bug
[libfirm] / ir / be / be.h
1
2 #ifndef _BE_MAIN_H
3 #define _BE_MAIN_H
4
5 void be_init(void);
6
7 /**
8  * Main interface to the frontend.
9  */
10 void be_main(FILE *file_handle);
11
12 /** The type of the debug info retriever function. */
13 typedef const char *(*retrieve_dbg_func)(const dbg_info *dbg, unsigned *line);
14
15 /**
16  * Sets a debug info retriever.
17  *
18  * @param func   the debug retriever function.
19  */
20 void be_set_debug_retrieve(retrieve_dbg_func func);
21
22 /**
23  * Retrieve the debug info.
24  */
25 const char *be_retrieve_dbg_info(const dbg_info *dbg, unsigned *line);
26
27 typedef struct _be_main_env_t be_main_env_t;
28 typedef struct _be_irg_t be_irg_t;
29 typedef struct _be_options_t be_options_t;
30
31 #endif /* _BE_MAIN_H */