X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=driver%2Ffirm_opt.c;h=5d78a86034bb23f89510b3e37155bc96b7715b93;hb=3def71f59901789159be20bfdc806fb0fb1b6375;hp=966139eed1042130c179aef4dd73d282ab35b203;hpb=beee1fb6ac672c24b6bf12b60b6d4c7f0ac97ff6;p=cparser diff --git a/driver/firm_opt.c b/driver/firm_opt.c index 966139e..5d78a86 100644 --- a/driver/firm_opt.c +++ b/driver/firm_opt.c @@ -69,7 +69,7 @@ struct a_firm_be_opt { }; /* optimization settings */ -struct a_firm_opt firm_opt = { +static struct a_firm_opt firm_opt = { .const_folding = true, .cse = true, .confirm = true, @@ -88,7 +88,7 @@ struct a_firm_opt firm_opt = { }; /* dumping options */ -struct a_firm_dump firm_dump = { +static struct a_firm_dump firm_dump = { .debug_print = false, .all_types = false, .no_blocks = false, @@ -373,7 +373,7 @@ static opt_config_t opts[] = { #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), @@ -412,7 +412,7 @@ static opt_config_t opts[] = { #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) { @@ -440,7 +440,7 @@ static bool get_opt_enabled(const char *name) } /** - * perform an optimisation on a single graph + * perform an optimization on a single graph * * @return true if something changed, false otherwise */ @@ -966,7 +966,7 @@ int firm_option(const char *const opt) } } - /* maybe this enables/disables optimisations */ + /* maybe this enables/disables optimizations */ if (firm_opt_option(opt)) return 1; @@ -989,7 +989,7 @@ static void set_option(const char *arg) void choose_optimization_pack(int level) { - /* apply optimisation level */ + /* apply optimization level */ switch(level) { case 0: set_option("no-opt");