};
/* optimization settings */
-struct a_firm_opt firm_opt = {
+static struct a_firm_opt firm_opt = {
.const_folding = true,
.cse = true,
.confirm = true,
};
/* dumping options */
-struct a_firm_dump firm_dump = {
+static struct a_firm_dump firm_dump = {
.debug_print = false,
.all_types = false,
.no_blocks = false,
#define IRP(a, b, c, d) { OPT_TARGET_IRP, a, .u.transform_irp = b, c, d }
IRG("bool", opt_bool, "bool simplification", OPT_FLAG_NONE),
IRG("combo", combo, "combined CCE, UCE and GVN", OPT_FLAG_NONE),
- IRG("confirm", construct_confirms, "confirm optimisation", OPT_FLAG_HIDE_OPTIONS),
+ IRG("confirm", construct_confirms, "confirm optimization", OPT_FLAG_HIDE_OPTIONS),
IRG("control-flow", optimize_cf, "optimization of control-flow", OPT_FLAG_HIDE_OPTIONS),
IRG("dead", dead_node_elimination, "dead node elimination", OPT_FLAG_HIDE_OPTIONS | OPT_FLAG_NO_DUMP | OPT_FLAG_NO_VERIFY),
IRG("deconv", conv_opt, "conv node elimination", OPT_FLAG_NONE),
#undef IRG
};
static const int n_opts = sizeof(opts) / sizeof(opts[0]);
-ir_timer_t *timers[sizeof(opts)/sizeof(opts[0])];
+static ir_timer_t *timers[sizeof(opts)/sizeof(opts[0])];
static opt_config_t *get_opt(const char *name)
{
}
/**
- * perform an optimisation on a single graph
+ * perform an optimization on a single graph
*
* @return true if something changed, false otherwise
*/
}
}
- /* maybe this enables/disables optimisations */
+ /* maybe this enables/disables optimizations */
if (firm_opt_option(opt))
return 1;
void choose_optimization_pack(int level)
{
- /* apply optimisation level */
+ /* apply optimization level */
switch(level) {
case 0:
set_option("no-opt");