Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
bc823a08
Commit
bc823a08
authored
24 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-07-03 15:12:41 by simonmar]
DEBUG ==> NCG_DEBUG
parent
ab661fe0
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/nativeGen/AsmCodeGen.lhs
+9
-10
9 additions, 10 deletions
ghc/compiler/nativeGen/AsmCodeGen.lhs
with
9 additions
and
10 deletions
ghc/compiler/nativeGen/AsmCodeGen.lhs
+
9
−
10
View file @
bc823a08
...
...
@@ -8,7 +8,6 @@ module AsmCodeGen ( nativeCodeGen ) where
#include "HsVersions.h"
#include "nativeGen/NCG.h"
import IO ( Handle )
import List ( intersperse )
import MachMisc
...
...
@@ -28,14 +27,13 @@ import Stix ( StixTree(..), StixReg(..),
NatM, initNat, mapNat,
NatM_State, mkNatM_State,
uniqOfNatM_State, deltaOfNatM_State )
import PrimRep ( isFloatingRep, PrimRep(..) )
import UniqSupply ( returnUs, thenUs, mapUs, initUs,
initUs_, UniqSM, UniqSupply,
lazyThenUs, lazyMapUs )
import MachMisc ( IF_ARCH_i386(i386_insert_ffrees,) )
import OrdList ( fromOL, concatOL )
import Outputable
import Outputable
\end{code}
...
...
@@ -97,12 +95,13 @@ nativeCodeGen absC us
insn_sdoc = my_vcat insn_sdocs
stix_sdoc = vcat stix_sdocs
# if DEBUG
# if
NCG_
DEBUG
my_trace m x = trace m x
my_vcat sds = vcat (intersperse (char ' '
$$ ptext SLIT("# ___stg_split_marker")
$$ char ' ')
sds)
my_vcat sds = vcat (intersperse
(char ' '
$$ ptext SLIT("# __debug_NCG_split_marker")
$$ char ' ')
sds)
# else
my_vcat sds = vcat sds
my_trace m x = x
...
...
@@ -201,7 +200,7 @@ stixPeep ( t1@(StAssign pka (StReg (StixTemp u pk)) rhs)
| stixCountTempUses u t2 == 1
&& sum (map (stixCountTempUses u) ts) == 0
=
# ifdef DEBUG
# ifdef
NCG_
DEBUG
trace ("nativeGen: inlining " ++ showSDoc (pprStixTree rhs))
# endif
(stixPeep (stixSubst u rhs t2 : ts))
...
...
@@ -372,4 +371,4 @@ comparison_ops
FloatGtOp , FloatGeOp , FloatEqOp , FloatNeOp , FloatLtOp , FloatLeOp,
DoubleGtOp, DoubleGeOp, DoubleEqOp, DoubleNeOp, DoubleLtOp, DoubleLeOp
]
\end{code}
\ No newline at end of file
\end{code}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment