summaryrefslogtreecommitdiff
path: root/compiler/main/DynFlags.hs
diff options
context:
space:
mode:
authornineonine <mail4chemik@gmail.com>2019-07-13 00:11:46 -0700
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-07-26 00:57:39 -0400
commitaae0457f412aa40dd192ca2cbea565ea60b182ec (patch)
treefd58e2a399fd70e0aeaa9e6c9eb7415877776ba3 /compiler/main/DynFlags.hs
parent30b6f391801d58e364f79df5da2cf9f02be2ba5f (diff)
downloadhaskell-aae0457f412aa40dd192ca2cbea565ea60b182ec.tar.gz
Change behaviour of -ddump-cmm-verbose to dump each Cmm pass output to a separate file and add -ddump-cmm-verbose-by-proc to keep old behaviour (#16930)
Diffstat (limited to 'compiler/main/DynFlags.hs')
-rw-r--r--compiler/main/DynFlags.hs9
1 files changed, 7 insertions, 2 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index 24c6caaf4d..5d0b09a602 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -407,10 +407,13 @@ data DumpFlag
= Opt_D_dump_cmm
| Opt_D_dump_cmm_from_stg
| Opt_D_dump_cmm_raw
- | Opt_D_dump_cmm_verbose
+ | Opt_D_dump_cmm_verbose_by_proc
-- All of the cmm subflags (there are a lot!) automatically
- -- enabled if you run -ddump-cmm-verbose
+ -- enabled if you run -ddump-cmm-verbose-by-proc
-- Each flag corresponds to exact stage of Cmm pipeline.
+ | Opt_D_dump_cmm_verbose
+ -- same as -ddump-cmm-verbose-by-proc but writes each stage
+ -- to a separate file (if used with -ddump-to-file)
| Opt_D_dump_cmm_cfg
| Opt_D_dump_cmm_cbe
| Opt_D_dump_cmm_switch
@@ -3302,6 +3305,8 @@ dynamic_flags_deps = [
(setDumpFlag Opt_D_dump_cmm_raw)
, make_ord_flag defGhcFlag "ddump-cmm-verbose"
(setDumpFlag Opt_D_dump_cmm_verbose)
+ , make_ord_flag defGhcFlag "ddump-cmm-verbose-by-proc"
+ (setDumpFlag Opt_D_dump_cmm_verbose_by_proc)
, make_ord_flag defGhcFlag "ddump-cmm-cfg"
(setDumpFlag Opt_D_dump_cmm_cfg)
, make_ord_flag defGhcFlag "ddump-cmm-cbe"