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
f1815aa4
Commit
f1815aa4
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-05-19 00:10:59 by sof]
new PP;2.0x bootable
parent
a915fa61
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/simplCore/BinderInfo.lhs
+15
-11
15 additions, 11 deletions
ghc/compiler/simplCore/BinderInfo.lhs
with
15 additions
and
11 deletions
ghc/compiler/simplCore/BinderInfo.lhs
+
15
−
11
View file @
f1815aa4
...
...
@@ -28,6 +28,10 @@ IMP_Ubiq(){-uitous-}
import Pretty
import Util ( panic )
#if __GLASGOW_HASKELL__ >= 202
import Outputable
#endif
\end{code}
The @BinderInfo@ describes how a variable is used in a given scope.
...
...
@@ -253,20 +257,20 @@ getBinderInfoArity (OneOcc _ _ _ _ i) = i
\begin{code}
instance Outputable BinderInfo where
ppr sty DeadCode = p
pPStr
SLIT("Dead")
ppr sty (ManyOcc ar) =
ppBesides [ ppPStr
SLIT("Many-"),
ppI
nt ar ]
ppr sty DeadCode = p
text
SLIT("Dead")
ppr sty (ManyOcc ar) =
hcat [ ptext
SLIT("Many-"),
i
nt ar ]
ppr sty (OneOcc posn dup_danger in_scc n_alts ar)
=
ppBesides [ ppPStr
SLIT("One-"), pp_posn posn,
ppC
har '-', pp_danger dup_danger,
ppC
har '-', pp_scc in_scc,
ppC
har '-',
ppI
nt n_alts,
ppC
har '-',
ppI
nt ar ]
=
hcat [ ptext
SLIT("One-"), pp_posn posn,
c
har '-', pp_danger dup_danger,
c
har '-', pp_scc in_scc,
c
har '-',
i
nt n_alts,
c
har '-',
i
nt ar ]
where
pp_posn FunOcc = p
pPStr
SLIT("fun")
pp_posn ArgOcc = p
pPStr
SLIT("arg")
pp_posn FunOcc = p
text
SLIT("fun")
pp_posn ArgOcc = p
text
SLIT("arg")
pp_danger DupDanger = p
pPStr
SLIT("*dup*")
pp_danger NoDupDanger = p
pPStr
SLIT("nodup")
pp_danger DupDanger = p
text
SLIT("*dup*")
pp_danger NoDupDanger = p
text
SLIT("nodup")
pp_scc InsideSCC = p
pPStr
SLIT("*SCC*")
pp_scc NotInsideSCC = p
pPStr
SLIT("noscc")
pp_scc InsideSCC = p
text
SLIT("*SCC*")
pp_scc NotInsideSCC = p
text
SLIT("noscc")
\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