[Git][ghc/ghc][wip/andreask/alias_cmm_opt] Add "ddump-cmm-opt" as alias for "ddump-opt-cmm".

Andreas Klebinger gitlab at gitlab.haskell.org
Mon Apr 20 12:42:46 UTC 2020



Andreas Klebinger pushed to branch wip/andreask/alias_cmm_opt at Glasgow Haskell Compiler / GHC


Commits:
eb916151 by Andreas Klebinger at 2020-04-20T14:42:36+02:00
Add "ddump-cmm-opt" as alias for "ddump-opt-cmm".

- - - - -


2 changed files:

- compiler/GHC/Driver/Session.hs
- docs/users_guide/debugging.rst


Changes:

=====================================
compiler/GHC/Driver/Session.hs
=====================================
@@ -2661,6 +2661,8 @@ dynamic_flags_deps = [
         (setDumpFlag Opt_D_dump_cmm_info)
   , make_ord_flag defGhcFlag "ddump-cmm-cps"
         (setDumpFlag Opt_D_dump_cmm_cps)
+  , make_ord_flag defGhcFlag "ddump-cmm-opt"
+        (setDumpFlag Opt_D_dump_opt_cmm)
   , make_ord_flag defGhcFlag "ddump-cfg-weights"
         (setDumpFlag Opt_D_dump_cfg_weights)
   , make_ord_flag defGhcFlag "ddump-core-stats"
@@ -2769,7 +2771,7 @@ dynamic_flags_deps = [
 
   , make_ord_flag defGhcFlag "ddump-rn-stats"
         (setDumpFlag Opt_D_dump_rn_stats)
-  , make_ord_flag defGhcFlag "ddump-opt-cmm"
+  , make_ord_flag defGhcFlag "ddump-opt-cmm" --old alias for cmm-opt
         (setDumpFlag Opt_D_dump_opt_cmm)
   , make_ord_flag defGhcFlag "ddump-simpl-stats"
         (setDumpFlag Opt_D_dump_simpl_stats)


=====================================
docs/users_guide/debugging.rst
=====================================
@@ -546,12 +546,18 @@ These flags dump various stages of the :ref:`native code generator's
 <native-code-gen>` pipeline, which starts with C-\\- and produces native
 assembler.
 
-.. ghc-flag:: -ddump-opt-cmm
+.. ghc-flag:: -ddump-cmm-opt
     :shortdesc: Dump the results of C-\\- to C-\\- optimising passes
     :type: dynamic
 
     Dump the results of C-\\- to C-\\- optimising passes performed by the NCG.
 
+.. ghc-flag:: -ddump-opt-cmm
+    :shortdesc: Dump the results of C-\\- to C-\\- optimising passes
+    :type: dynamic
+
+    Alias for :ghc-flag:`-ddump-cmm-opt`
+
 .. ghc-flag:: -ddump-asm-native
     :shortdesc: Dump initial assembly
     :type: dynamic



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/eb916151ae1848e64b044123cc918da459c0cad9

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/eb916151ae1848e64b044123cc918da459c0cad9
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200420/6e78fa8b/attachment-0001.html>


More information about the ghc-commits mailing list