Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
4717b03b
Commit
4717b03b
authored
Jun 20, 2012
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some more redundant Platform arguments
parent
0f1c5b1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
compiler/cmm/PprCmmDecl.hs
compiler/cmm/PprCmmDecl.hs
+8
-8
compiler/llvmGen/LlvmCodeGen.hs
compiler/llvmGen/LlvmCodeGen.hs
+1
-1
compiler/nativeGen/AsmCodeGen.lhs
compiler/nativeGen/AsmCodeGen.lhs
+1
-1
No files found.
compiler/cmm/PprCmmDecl.hs
View file @
4717b03b
...
...
@@ -75,7 +75,7 @@ writeCmms dflags handle cmms = printForC dflags handle (pprCmms cmms)
instance
(
Outputable
d
,
Outputable
info
,
Outputable
i
)
=>
Outputable
(
GenCmmDecl
d
info
i
)
where
ppr
t
=
sdocWithPlatform
$
\
platform
->
pprTop
platform
t
ppr
t
=
pprTop
t
instance
Outputable
CmmStatics
where
ppr
x
=
sdocWithPlatform
$
\
platform
->
pprStatics
platform
x
...
...
@@ -90,19 +90,19 @@ instance Outputable CmmInfoTable where
-----------------------------------------------------------------------------
pprCmmGroup
::
(
Outputable
d
,
Outputable
info
,
Outputable
g
)
=>
Platform
->
GenCmmGroup
d
info
g
->
SDoc
pprCmmGroup
platform
tops
=
vcat
$
intersperse
blankLine
$
map
(
pprTop
platform
)
tops
=>
GenCmmGroup
d
info
g
->
SDoc
pprCmmGroup
tops
=
vcat
$
intersperse
blankLine
$
map
pprTop
tops
-- --------------------------------------------------------------------------
-- Top level `procedure' blocks.
--
pprTop
::
(
Outputable
d
,
Outputable
info
,
Outputable
i
)
=>
Platform
->
GenCmmDecl
d
info
i
->
SDoc
=>
GenCmmDecl
d
info
i
->
SDoc
pprTop
platform
(
CmmProc
info
lbl
graph
)
pprTop
(
CmmProc
info
lbl
graph
)
=
vcat
[
ppr
CLabel
platform
lbl
<>
lparen
<>
rparen
=
vcat
[
ppr
lbl
<>
lparen
<>
rparen
,
nest
8
$
lbrace
<+>
ppr
info
$$
rbrace
,
nest
4
$
ppr
graph
,
rbrace
]
...
...
@@ -112,7 +112,7 @@ pprTop platform (CmmProc info lbl graph)
--
-- section "data" { ... }
--
pprTop
_
(
CmmData
section
ds
)
=
pprTop
(
CmmData
section
ds
)
=
(
hang
(
pprSection
section
<+>
lbrace
)
4
(
ppr
ds
))
$$
rbrace
...
...
compiler/llvmGen/LlvmCodeGen.hs
View file @
4717b03b
...
...
@@ -134,7 +134,7 @@ cmmLlvmGen dflags us env cmm = do
fixStgRegisters
cmm
dumpIfSet_dyn
dflags
Opt_D_dump_opt_cmm
"Optimised Cmm"
(
pprCmmGroup
(
targetPlatform
dflags
)
[
fixed_cmm
])
(
pprCmmGroup
[
fixed_cmm
])
-- generate llvm code from cmm
let
((
env'
,
llvmBC
),
usGen
)
=
{-# SCC "llvm_proc_gen" #-}
...
...
compiler/nativeGen/AsmCodeGen.lhs
View file @
4717b03b
...
...
@@ -360,7 +360,7 @@ cmmNativeGen dflags ncgImpl us cmm count
dumpIfSet_dyn dflags
Opt_D_dump_opt_cmm "Optimised Cmm"
(pprCmmGroup
platform
[opt_cmm])
(pprCmmGroup [opt_cmm])
-- generate native code from cmm
let ((native, lastMinuteImports), usGen) =
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment