projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify printing string initializers.
[cparser]
/
driver
/
firm_opt.h
diff --git
a/driver/firm_opt.h
b/driver/firm_opt.h
index
4b5192b
..
90938cf
100644
(file)
--- a/
driver/firm_opt.h
+++ b/
driver/firm_opt.h
@@
-91,38
+91,37
@@
enum rts_names {
rts_max
};
rts_max
};
-extern ir_entity_ptr rts_entities[rts_max];
-
-/** Debug printf implementation. */
-extern void dbg_printf(const char *fmt, ...);
+extern ir_entity *rts_entities[rts_max];
/** Initialize for the Firm-generating back end. */
void gen_firm_init(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);
+/** free resources hold by firm-generating back end */
+void gen_firm_finish(void);
-void gen_Firm_assembler(const char *input_filename);
+/**
+ * Transform, optimize and generate code
+ *
+ * @param out a file handle for the output, may be NULL
+ * @param input_filename the name of the (main) source file
+ */
+void generate_code(FILE *out, const char *input_filename);
-/**
early initialization.
*/
-
void firm_early_init(void
);
+/**
process optimization commandline option
*/
+
int firm_option(const char *opt
);
-/** process optimisation commandline option */
-int firm_opt_option(const char *opt);
+typedef void (*print_option_help_func)(const char *name, const char *description);
-/** print help about optimisations options */
-void firm_opt_option_help(void);
+void firm_option_help(print_option_help_func func);
/** Choose an optimization level. (Typically used to interpret the -O compiler
* switches) */
void choose_optimization_pack(int level);
/**
/** Choose an optimization level. (Typically used to interpret the -O compiler
* switches) */
void choose_optimization_pack(int level);
/**
- *
Setup firm to generate code for a specific os.
- *
The parameter should be the OS-part of a machine triple
+ *
Initialize implicit optimization settings in firm. Frontends should call this
+ *
before starting graph construction
*/
*/
-void
firm_init_os(const char *os
);
+void
init_implicit_optimizations(void
);
#endif
#endif