diff options
Diffstat (limited to 'utils/mkUserGuidePart/Options/Optimizations.hs')
-rw-r--r-- | utils/mkUserGuidePart/Options/Optimizations.hs | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/utils/mkUserGuidePart/Options/Optimizations.hs b/utils/mkUserGuidePart/Options/Optimizations.hs index 6e0a2ff5bf..389cd37c68 100644 --- a/utils/mkUserGuidePart/Options/Optimizations.hs +++ b/utils/mkUserGuidePart/Options/Optimizations.hs @@ -6,35 +6,35 @@ optimizationsOptions :: [Flag] optimizationsOptions = [ flag { flagName = "-fcall-arity" , flagDescription = - "Enable call-arity optimisation. Implied by ``-O``." + "Enable call-arity optimisation. Implied by :ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-call-arity" } , flag { flagName = "-fcase-merge" - , flagDescription = "Enable case-merging. Implied by ``-O``." + , flagDescription = "Enable case-merging. Implied by :ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-case-merge" } , flag { flagName = "-fcmm-elim-common-blocks" , flagDescription = - "Enable Cmm common block elimination. Implied by ``-O``." + "Enable Cmm common block elimination. Implied by :ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-cmm-elim-common-blocks" } , flag { flagName = "-fcmm-sink" - , flagDescription = "Enable Cmm sinking. Implied by ``-O``." + , flagDescription = "Enable Cmm sinking. Implied by :ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-cmm-sink" } , flag { flagName = "-fcpr-anal" , flagDescription = - "Turn on CPR analysis in the demand analyser. Implied by ``-O``." + "Turn on CPR analysis in the demand analyser. Implied by :ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-cpr-anal" } , flag { flagName = "-fcse" , flagDescription = - "Enable common sub-expression elimination. Implied by ``-O``." + "Enable common sub-expression elimination. Implied by :ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-cse" } @@ -57,7 +57,7 @@ optimizationsOptions = , flagReverse = "-fno-dmd-tx-dict-sel" } , flag { flagName = "-fdo-eta-reduction" - , flagDescription = "Enable eta-reduction. Implied by ``-O``." + , flagDescription = "Enable eta-reduction. Implied by :ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-do-eta-reduction" } @@ -76,7 +76,7 @@ optimizationsOptions = , flagDescription = "Switch on all rewrite rules (including rules generated by "++ "automatic specialisation of overloaded functions). Implied by "++ - "``-O``." + ":ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-enable-rewrite-rules" } @@ -93,14 +93,14 @@ optimizationsOptions = } , flag { flagName = "-ffloat-in" , flagDescription = - "Turn on the float-in transformation. Implied by ``-O``." + "Turn on the float-in transformation. Implied by :ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-float-in" } , flag { flagName = "-ffull-laziness" , flagDescription = "Turn on full laziness (floating bindings outwards). "++ - "Implied by ``-O``." + "Implied by :ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-full-laziness" } @@ -113,13 +113,13 @@ optimizationsOptions = } , flag { flagName = "-fignore-asserts" , flagDescription = - "Ignore assertions in the source. Implied by ``-O``." + "Ignore assertions in the source. Implied by :ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-ignore-asserts" } , flag { flagName = "-fignore-interface-pragmas" , flagDescription = - "Ignore pragmas in interface files. Implied by ``-O0`` only." + "Ignore pragmas in interface files. Implied by :ghc-flag:`O0` only." , flagType = DynamicFlag , flagReverse = "-fno-ignore-interface-pragmas" } @@ -132,7 +132,7 @@ optimizationsOptions = } , flag { flagName = "-fliberate-case" , flagDescription = - "Turn on the liberate-case transformation. Implied by ``-O2``." + "Turn on the liberate-case transformation. Implied by :ghc-flag:`O2`." , flagType = DynamicFlag , flagReverse = "-fno-liberate-case" } @@ -146,7 +146,7 @@ optimizationsOptions = , flag { flagName = "-floopification" , flagDescription = "Turn saturated self-recursive tail-calls into local jumps in the "++ - "generated assembly. Implied by ``-O``." + "generated assembly. Implied by :ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-loopification" } @@ -206,7 +206,7 @@ optimizationsOptions = } , flag { flagName = "-fomit-interface-pragmas" , flagDescription = - "Don't generate interface pragmas. Implied by ``-O0`` only." + "Don't generate interface pragmas. Implied by :ghc-flag:`O0` only." , flagType = DynamicFlag , flagReverse = "-fno-omit-interface-pragmas" } @@ -219,7 +219,7 @@ optimizationsOptions = , flag { flagName = "-fpedantic-bottoms" , flagDescription = "Make GHC be more precise about its treatment of bottom (but see "++ - "also ``-fno-state-hack``). In particular, GHC will not "++ + "also :ghc-flag:`fno-state-hack`). In particular, GHC will not "++ "eta-expand through a case expression." , flagType = DynamicFlag , flagReverse = "-fno-pedantic-bottoms" @@ -227,7 +227,7 @@ optimizationsOptions = , flag { flagName = "-fregs-graph" , flagDescription = "Use the graph colouring register allocator for register "++ - "allocation in the native code generator. Implied by ``-O2``." + "allocation in the native code generator. Implied by :ghc-flag:`O2`." , flagType = DynamicFlag , flagReverse = "-fno-regs-graph" } @@ -241,7 +241,7 @@ optimizationsOptions = , flag { flagName = "-fsimplifier-phases=⟨n⟩" , flagDescription = "*default: 2.* Set the number of phases for the simplifier. "++ - "Ignored with ``-O0``." + "Ignored with :ghc-flag:`O0`." , flagType = DynamicFlag } , flag { flagName = "-fsimpl-tick-factor=⟨n⟩" @@ -251,7 +251,7 @@ optimizationsOptions = } , flag { flagName = "-fspec-constr" , flagDescription = - "Turn on the SpecConstr transformation. Implied by ``-O2``." + "Turn on the SpecConstr transformation. Implied by :ghc-flag:`O2`." , flagType = DynamicFlag , flagReverse = "-fno-spec-constr" } @@ -272,7 +272,7 @@ optimizationsOptions = } , flag { flagName = "-fspecialise" , flagDescription = - "Turn on specialisation of overloaded functions. Implied by ``-O``." + "Turn on specialisation of overloaded functions. Implied by :ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-specialise" } @@ -290,7 +290,7 @@ optimizationsOptions = } , flag { flagName = "-fstrictness" , flagDescription = "Turn on strictness analysis." ++ - " Implied by ``-O``. Implies ``-fworker-wrapper``" + " Implied by :ghc-flag:`O`. Implies :ghc-flag:`fworker-wrapper`" , flagType = DynamicFlag , flagReverse = "-fno-strictness" } @@ -302,7 +302,7 @@ optimizationsOptions = , flag { flagName = "-funbox-small-strict-fields" , flagDescription = "Flatten strict constructor fields with a pointer-sized "++ - "representation. Implied by ``-O``." + "representation. Implied by :ghc-flag:`O`." , flagType = DynamicFlag , flagReverse = "-fno-unbox-small-strict-fields" } @@ -345,9 +345,9 @@ optimizationsOptions = , flag { flagName = "-fworker-wrapper" , flagDescription = "Enable the worker-wrapper transformation after a strictness" ++ - " analysis pass. Implied by ``-O``, and by ``-fstrictness``." ++ - " Disabled by ``-fno-strictness``. Enabling ``-fworker-wrapper``" ++ - " while strictness analysis is disabled (by ``-fno-strictness``)" ++ + " analysis pass. Implied by :ghc-flag:`O`, and by :ghc-flag:`fstrictness`." ++ + " Disabled by :ghc-flag:`fno-strictness`. Enabling :ghc-flag:`fworker-wrapper`" ++ + " while strictness analysis is disabled (by :ghc-flag:`fno-strictness`)" ++ " has no effect." , flagType = DynamicFlag , flagReverse = "-fno-worker-wrapper" |