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
Reinier Maas
GHC
Commits
257f1567
Commit
257f1567
authored
1 year ago
by
Jaro Reinders
Committed by
Marge Bot
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add StgFromCore and StgCodeGen linting
parent
787bae96
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/GHC/Stg/Pipeline.hs
+3
-0
3 additions, 0 deletions
compiler/GHC/Stg/Pipeline.hs
with
3 additions
and
0 deletions
compiler/GHC/Stg/Pipeline.hs
+
3
−
0
View file @
257f1567
...
...
@@ -74,6 +74,7 @@ stg2stg :: Logger
->
IO
([(
CgStgTopBinding
,
IdSet
)],
StgCgInfos
)
-- output program
stg2stg
logger
extra_vars
opts
this_mod
binds
=
do
{
dump_when
Opt_D_dump_stg_from_core
"Initial STG:"
binds
;
stg_linter
False
"StgFromCore"
binds
;
showPass
logger
"Stg2Stg"
-- Do the main business!
;
binds'
<-
runStgM
'g'
$
...
...
@@ -92,10 +93,12 @@ stg2stg logger extra_vars opts this_mod binds
;
let
(
binds_sorted_with_fvs
,
imp_fvs
)
=
unzip
(
depSortWithAnnotStgPgm
this_mod
binds'
)
-- See Note [Tag inference for interactive contexts]
;
(
cg_binds
,
cg_infos
)
<-
inferTags
(
stgPipeline_pprOpts
opts
)
(
stgPipeline_forBytecode
opts
)
logger
this_mod
binds_sorted_with_fvs
;
stg_linter
False
"StgCodeGen"
cg_binds
;
pure
(
zip
cg_binds
imp_fvs
,
cg_infos
)
}
where
stg_linter
::
(
BinderP
a
~
Id
,
OutputablePass
a
)
=>
Bool
->
String
->
[
GenStgTopBinding
a
]
->
IO
()
stg_linter
unarised
|
Just
diag_opts
<-
stgPipeline_lint
opts
=
lintStgTopBindings
...
...
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