diff options
author | Cyril SIX <cyril.six@kalray.eu> | 2019-04-29 18:02:58 +0200 |
---|---|---|
committer | Cyril SIX <cyril.six@kalray.eu> | 2019-04-29 18:02:58 +0200 |
commit | c3003517a048d7469a314fc245118ed72e2158dd (patch) | |
tree | c81f7d0f8249a4279117e35171a80c1a1ca9243b /driver/Driver.ml | |
parent | 92da04b18cf8067624ae6d3c118de91fbb4b90b2 (diff) | |
download | compcert-kvx-c3003517a048d7469a314fc245118ed72e2158dd.tar.gz compcert-kvx-c3003517a048d7469a314fc245118ed72e2158dd.zip |
The scheduler selection works, but the argument is not optional yet (-fpostpass nameofscheduler)
Diffstat (limited to 'driver/Driver.ml')
-rw-r--r-- | driver/Driver.ml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/driver/Driver.ml b/driver/Driver.ml index c68c066a..9a2eca1f 100644 --- a/driver/Driver.ml +++ b/driver/Driver.ml @@ -264,6 +264,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_postpass name ref = + [Exact("-f" ^ name), String + (fun s -> (option_fpostpass_sched := (if s == "" then "list" else s)); ref := true); + Exact("-fno-" ^ name), Unset ref] in [ (* Getting help *) Exact "-help", Unit print_usage_and_exit; @@ -363,8 +367,7 @@ let cmdline_actions = @ f_opt "const-prop" option_fconstprop @ f_opt "cse" option_fcse @ f_opt "redundancy" option_fredundancy - @ f_opt "postpass" option_fpostpass - @ f_opt "postpass-ilp" option_fpostpass_ilp + @ f_opt_postpass "postpass" option_fpostpass @ f_opt "inline" option_finline @ f_opt "inline-functions-called-once" option_finline_functions_called_once (* Code generation options *) |