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
deb22436
Commit
deb22436
authored
Aug 30, 2007
by
rl@cse.unsw.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix vectorisation of unary data constructors
parent
ee79af08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
compiler/vectorise/VectBuiltIn.hs
compiler/vectorise/VectBuiltIn.hs
+6
-1
No files found.
compiler/vectorise/VectBuiltIn.hs
View file @
deb22436
...
...
@@ -46,6 +46,7 @@ data Builtins = Builtins {
,
prTyCon
::
TyCon
,
prDataCon
::
DataCon
,
parrayIntPrimTyCon
::
TyCon
,
wrapTyCon
::
TyCon
,
sumTyCons
::
Array
Int
TyCon
,
closureTyCon
::
TyCon
,
mkPRVar
::
Var
...
...
@@ -70,7 +71,8 @@ sumTyCon n bi
prodTyCon
::
Int
->
Builtins
->
TyCon
prodTyCon
n
bi
|
n
>=
2
&&
n
<=
mAX_NDP_PROD
=
tupleTyCon
Boxed
n
|
n
==
1
=
wrapTyCon
bi
|
n
>=
0
&&
n
<=
mAX_NDP_PROD
=
tupleTyCon
Boxed
n
|
otherwise
=
pprPanic
"prodTyCon"
(
ppr
n
)
initBuiltins
::
DsM
Builtins
...
...
@@ -85,6 +87,7 @@ initBuiltins
parrayIntPrimTyCon
<-
dsLookupTyCon
parrayIntPrimTyConName
closureTyCon
<-
dsLookupTyCon
closureTyConName
wrapTyCon
<-
lookupExternalTyCon
nDP_REPR
FSLIT
(
"Wrap"
)
sum_tcs
<-
mapM
(
lookupExternalTyCon
nDP_REPR
)
[
mkFastString
(
"Sum"
++
show
i
)
|
i
<-
[
2
..
mAX_NDP_SUM
]]
...
...
@@ -114,6 +117,7 @@ initBuiltins
,
prTyCon
=
prTyCon
,
prDataCon
=
prDataCon
,
parrayIntPrimTyCon
=
parrayIntPrimTyCon
,
wrapTyCon
=
wrapTyCon
,
sumTyCons
=
sumTyCons
,
closureTyCon
=
closureTyCon
,
mkPRVar
=
mkPRVar
...
...
@@ -174,6 +178,7 @@ builtinPRs :: Builtins -> [(Name, Module, FastString)]
builtinPRs
bi
=
[
mk
(
tyConName
unitTyCon
)
nDP_REPR
FSLIT
(
"dPR_Unit"
)
,
mk
(
tyConName
$
wrapTyCon
bi
)
nDP_REPR
FSLIT
(
"dPR_Wrap"
)
,
mk
closureTyConName
nDP_CLOSURE
FSLIT
(
"dPR_Clo"
)
-- temporary
...
...
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