12 * This structure contains parameters that should be
13 * propagated to the libFirm parameter set.
15 typedef struct backend_params {
16 /** Additional opcodes settings. */
17 const arch_ops_info *arch_op_settings;
19 /** Settings for architecture dependent optimizations */
20 const arch_dep_params_t *dep_param;
22 /** if set, the backend cannot handle DWORD access */
23 unsigned do_dw_lowering;
25 /** the architecture specific intrinsic function creator */
26 create_intrinsic_fkt *arch_create_intrinsic_fkt;
30 * Register the Firm backend command line options.
32 void be_opt_register(void);
35 * Parse one backend argument.
37 int be_parse_arg(const char *arg);
40 * Initialize the Firm backend. Must be run BEFORE init_firm()!
42 * @return libFirm configuration parameters for the selected
45 const backend_params *be_init(void);
48 * Main interface to the frontend.
50 void be_main(FILE *file_handle);
52 /** The type of the debug info retriever function. */
53 typedef const char *(*retrieve_dbg_func)(const dbg_info *dbg, unsigned *line);
56 * Sets a debug info retriever.
58 * @param func the debug retriever function.
60 void be_set_debug_retrieve(retrieve_dbg_func func);
63 * Retrieve the debug info.
65 const char *be_retrieve_dbg_info(const dbg_info *dbg, unsigned *line);
67 typedef struct _be_main_env_t be_main_env_t;
68 typedef struct _be_irg_t be_irg_t;
69 typedef struct _be_options_t be_options_t;
71 #endif /* _BE_MAIN_H */