summaryrefslogtreecommitdiff
path: root/docs/users_guide/debugging.rst
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2019-10-22 10:52:42 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-23 05:59:09 -0400
commit266435a7ab865467d5027b1a718f74f85b77b96f (patch)
treeceaa47b5c8cc0780e7c2fb7478fd1a710d14c545 /docs/users_guide/debugging.rst
parentbb0dc5a5c1d1fa583b73835d8cb7055020834051 (diff)
downloadhaskell-266435a7ab865467d5027b1a718f74f85b77b96f.tar.gz
Add new flag for unarised STG dumps
Previously -ddump-stg would dump pre and post-unarise STGs. Now we have a new flag for post-unarise STG and -ddump-stg only dumps coreToStg output. STG dump flags after this commit: - -ddump-stg: Dumps CoreToStg output - -ddump-stg-unarised: Unarise output - -ddump-stg-final: STG right before code gen (includes CSE and lambda lifting)
Diffstat (limited to 'docs/users_guide/debugging.rst')
-rw-r--r--docs/users_guide/debugging.rst10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/users_guide/debugging.rst b/docs/users_guide/debugging.rst
index f8e862e5f0..0955af1270 100644
--- a/docs/users_guide/debugging.rst
+++ b/docs/users_guide/debugging.rst
@@ -369,10 +369,10 @@ STG representation
These flags dump various phases of GHC's STG pipeline.
.. ghc-flag:: -ddump-stg
- :shortdesc: Dump final STG
+ :shortdesc: Show CoreToStg output
:type: dynamic
- Dump output of STG-to-STG passes
+ Show the output of CoreToStg pass.
.. ghc-flag:: -dverbose-stg2stg
:shortdesc: Show output from each STG-to-STG pass
@@ -380,6 +380,12 @@ These flags dump various phases of GHC's STG pipeline.
Show the output of the intermediate STG-to-STG pass. (*lots* of output!)
+.. ghc-flag:: -ddump-stg-unarised
+ :shortdesc: Show unarised STG
+ :type: dynamic
+
+ Show the output of the unarise pass.
+
.. ghc-flag:: -ddump-stg-final
:shortdesc: Show output of last STG pass.
:type: dynamic