Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Glasgow Haskell Compiler
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
Shayne Fletcher
Glasgow Haskell Compiler
Commits
c21ddffb
Commit
c21ddffb
authored
Nov 22, 2011
by
dterei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show LLVM mangler and code gen passes at v2
parent
aa55fdc5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
compiler/llvmGen/LlvmCodeGen.hs
compiler/llvmGen/LlvmCodeGen.hs
+1
-0
compiler/llvmGen/LlvmMangler.hs
compiler/llvmGen/LlvmMangler.hs
+5
-2
compiler/main/DriverPipeline.hs
compiler/main/DriverPipeline.hs
+1
-1
No files found.
compiler/llvmGen/LlvmCodeGen.hs
View file @
c21ddffb
...
...
@@ -45,6 +45,7 @@ llvmCodeGen dflags h us cmms
env'
=
funInsert
lbl
llvmFunTy
e
in
(
d
,
env'
)
in
do
showPass
dflags
"LlVM CodeGen"
bufh
<-
newBufHandle
h
Prt
.
bufLeftRender
bufh
$
pprLlvmHeader
ver
<-
(
fromMaybe
defaultLlvmVersion
)
`
fmap
`
figureLlvmVersion
dflags
...
...
compiler/llvmGen/LlvmMangler.hs
View file @
c21ddffb
...
...
@@ -14,6 +14,8 @@ module LlvmMangler ( llvmFixupAsm ) where
#
include
"HsVersions.h"
import
DynFlags
(
DynFlags
)
import
ErrUtils
(
showPass
)
import
LlvmCodeGen.Ppr
(
infoSection
)
import
Control.Exception
...
...
@@ -54,8 +56,9 @@ dollarPred = ((==) '$')
commaPred
=
((
==
)
','
)
-- | Read in assembly file and process
llvmFixupAsm
::
FilePath
->
FilePath
->
IO
()
llvmFixupAsm
f1
f2
=
do
llvmFixupAsm
::
DynFlags
->
FilePath
->
FilePath
->
IO
()
llvmFixupAsm
dflags
f1
f2
=
do
showPass
dflags
"LlVM Mangler"
r
<-
openBinaryFile
f1
ReadMode
w
<-
openBinaryFile
f2
WriteMode
ss
<-
readSections
r
w
...
...
compiler/main/DriverPipeline.hs
View file @
c21ddffb
...
...
@@ -1372,7 +1372,7 @@ runPhase LlvmMangle input_fn dflags
=
do
let
next_phase
=
if
dopt
Opt_SplitObjs
dflags
then
Splitter
else
As
output_fn
<-
phaseOutputFilename
next_phase
io
$
llvmFixupAsm
input_fn
output_fn
io
$
llvmFixupAsm
dflags
input_fn
output_fn
return
(
next_phase
,
output_fn
)
-----------------------------------------------------------------------------
...
...
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