X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbe.h;h=a12f9a5289e0e97d9e106f3129a3868ec4055905;hb=9e45062f03f139df6068019c3f4733d809cf9e2c;hp=02a4e1ef5c44ac7a075d104022644085ca6c4e8f;hpb=dc932bff14044e8511d693085fce630cbf4b9dd3;p=libfirm diff --git a/ir/be/be.h b/ir/be/be.h index 02a4e1ef5..a12f9a528 100644 --- a/ir/be/be.h +++ b/ir/be/be.h @@ -2,10 +2,43 @@ #ifndef _BE_MAIN_H #define _BE_MAIN_H +/** + * Register the Firm backend command line options. + */ +void be_opt_register(void); + +/** + * Parse one backend argument. + */ +int be_parse_arg(const char *arg); + +/** + * Initialize the Firm backend. Must be run BEFORE init_firm()! + */ void be_init(void); + +/** + * Main interface to the frontend. + */ void be_main(FILE *file_handle); +/** The type of the debug info retriever function. */ +typedef const char *(*retrieve_dbg_func)(const dbg_info *dbg, unsigned *line); + +/** + * Sets a debug info retriever. + * + * @param func the debug retriever function. + */ +void be_set_debug_retrieve(retrieve_dbg_func func); + +/** + * Retrieve the debug info. + */ +const char *be_retrieve_dbg_info(const dbg_info *dbg, unsigned *line); + typedef struct _be_main_env_t be_main_env_t; +typedef struct _be_irg_t be_irg_t; typedef struct _be_options_t be_options_t; -#endif +#endif /* _BE_MAIN_H */