X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=driver%2Ffirm_opt.h;h=9f3516f43626ae0ea29a38972b6c4755274b70f4;hb=127a634aa53da8c37ee50f365184cccad67df0d8;hp=56fdbe65379eec24c501055cc79bce99c013b80d;hpb=340fb9d9bc75026f3f0235c1f50746288a81a45e;p=cparser diff --git a/driver/firm_opt.h b/driver/firm_opt.h index 56fdbe6..9f3516f 100644 --- a/driver/firm_opt.h +++ b/driver/firm_opt.h @@ -1,6 +1,7 @@ #ifndef FIRM_OPT_H #define FIRM_OPT_H +#include #include #include @@ -92,29 +93,24 @@ enum rts_names { extern ir_entity_ptr rts_entities[rts_max]; -/** Debug printf implementation. */ -extern void dbg_printf(const char *fmt, ...); - -/** Do the necessary lowering for compound parameters. */ -extern void lower_compound_params(void); - /** Initialize for the Firm-generating back end. */ void gen_firm_init(void); -void disable_all_opts(void); - /** called, after the Firm generation is completed. */ -void gen_firm_finish(FILE *out, const char *input_filename, int firm_const_exists); - -void gen_Firm_assembler(const char *input_filename); +void gen_firm_finish(FILE *out, const char *input_filename); /** early initialization. */ void firm_early_init(void); -/** process optimisation commandline option */ -int firm_opt_option(const char *opt); +/** process optimization commandline option */ +int firm_option(const char *opt); + +typedef void (*print_option_help_func)(const char *name, const char *description); + +void firm_option_help(print_option_help_func func); -/** print help about optimisations options */ -void firm_opt_option_help(void); +/** Choose an optimization level. (Typically used to interpret the -O compiler + * switches) */ +void choose_optimization_pack(int level); -#endif /* FIRM_OPT_H */ +#endif