aboutsummaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
Diffstat (limited to 'driver')
-rw-r--r--driver/Clflags.ml2
-rw-r--r--driver/Driver.ml7
2 files changed, 6 insertions, 3 deletions
diff --git a/driver/Clflags.ml b/driver/Clflags.ml
index 4d70d350..5b8ad443 100644
--- a/driver/Clflags.ml
+++ b/driver/Clflags.ml
@@ -28,7 +28,7 @@ let option_fconstprop = ref true
let option_fcse = ref true
let option_fredundancy = ref true
let option_fpostpass = ref true
-let option_fpostpass_ilp = ref false
+let option_fpostpass_sched = ref "list"
let option_falignfunctions = ref (None: int option)
let option_falignbranchtargets = ref 0
let option_faligncondbranchs = ref 0
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 *)