aboutsummaryrefslogtreecommitdiffstats
path: root/driver/Driver.ml
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-05-03 14:32:36 +0200
committerCyril SIX <cyril.six@kalray.eu>2019-05-03 14:32:36 +0200
commit452da0d77523d15830d7a78198092d72822063a6 (patch)
tree273bf5fc7e715d80a75f5c83d06cfd32e9266d74 /driver/Driver.ml
parent24e97bd87918f2c487416744ba12a78aba35a9e5 (diff)
parent9976dba5412be7e834abb63ac2293f1da288a185 (diff)
downloadcompcert-kvx-452da0d77523d15830d7a78198092d72822063a6.tar.gz
compcert-kvx-452da0d77523d15830d7a78198092d72822063a6.zip
Merge branch 'mppa-work' into mppa_k1c
Diffstat (limited to 'driver/Driver.ml')
-rw-r--r--driver/Driver.ml13
1 files changed, 11 insertions, 2 deletions
diff --git a/driver/Driver.ml b/driver/Driver.ml
index c68c066a..cfafcaa3 100644
--- a/driver/Driver.ml
+++ b/driver/Driver.ml
@@ -194,7 +194,8 @@ Processing options:
-fcse Perform common subexpression elimination [on]
-fredundancy Perform redundancy elimination [on]
-fpostpass Perform postpass scheduling (only for K1 architecture) [on]
- -fpostpass-ilp Use integer linear programming for postpass scheduling [off]
+ -fpostpass= <optim> Perform postpass scheduling with the specified optimization [list]
+ (<optim>=list: list scheduling, <optim>=ilp: ILP, <optim>=greedy: just packing bundles)
-finline Perform inlining of functions [on]
-finline-functions-called-once Integrate functions only required by their
single caller [on]
@@ -264,6 +265,10 @@ let num_input_files = ref 0
let cmdline_actions =
let f_opt name ref =
[Exact("-f" ^ name), Set ref; Exact("-fno-" ^ name), Unset ref] in
+ let f_opt_str name ref strref =
+ [Exact("-f" ^ name ^ "="), String
+ (fun s -> (strref := (if s == "" then "list" else s)); ref := true)
+ ] in
[
(* Getting help *)
Exact "-help", Unit print_usage_and_exit;
@@ -364,9 +369,13 @@ let cmdline_actions =
@ f_opt "cse" option_fcse
@ f_opt "redundancy" option_fredundancy
@ f_opt "postpass" option_fpostpass
- @ f_opt "postpass-ilp" option_fpostpass_ilp
+ @ f_opt_str "postpass" option_fpostpass option_fpostpass_sched
@ f_opt "inline" option_finline
@ f_opt "inline-functions-called-once" option_finline_functions_called_once
+ @ f_opt "globaladdrtmp" option_fglobaladdrtmp
+ @ f_opt "globaladdroffset" option_fglobaladdroffset
+ @ f_opt "xsaddr" option_fxsaddr
+ @ f_opt "coalesce-mem" option_coalesce_mem
(* Code generation options *)
@ f_opt "fpu" option_ffpu
@ f_opt "sse" option_ffpu (* backward compatibility *)