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
49dca6ac
Commit
49dca6ac
authored
Aug 30, 2007
by
rl@cse.unsw.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Track changes to package ndp (use PArray_Int# instead of UArr Int)
parent
de6c394e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
compiler/prelude/PrelNames.lhs
compiler/prelude/PrelNames.lhs
+4
-4
compiler/vectorise/VectBuiltIn.hs
compiler/vectorise/VectBuiltIn.hs
+3
-3
compiler/vectorise/VectType.hs
compiler/vectorise/VectType.hs
+2
-2
No files found.
compiler/prelude/PrelNames.lhs
View file @
49dca6ac
...
...
@@ -218,7 +218,7 @@ genericTyConNames = [crossTyConName, plusTyConName, genUnitTyConName]
ndpNames :: [Name]
ndpNames = [ parrayTyConName, paTyConName, preprTyConName, prTyConName
,
uarr
TyConName
,
parrayIntPrim
TyConName
, mkPRName
, closureTyConName
, mkClosureName, applyClosureName
...
...
@@ -281,7 +281,6 @@ nDP_REPR = mkNDPModule FSLIT("Data.Array.Parallel.Lifted.Repr")
nDP_CLOSURE = mkNDPModule FSLIT("Data.Array.Parallel.Lifted.Closure")
nDP_PRIM = mkNDPModule FSLIT("Data.Array.Parallel.Lifted.Prim")
nDP_INSTANCES = mkNDPModule FSLIT("Data.Array.Parallel.Lifted.Instances")
nDP_UARR = mkNDPModule FSLIT("Data.Array.Parallel.Unlifted.Flat.UArr")
mAIN = mkMainModule_ mAIN_NAME
rOOT_MAIN = mkMainModule FSLIT(":Main") -- Root module for initialisation
...
...
@@ -700,7 +699,8 @@ parrayTyConName = tcQual nDP_PARRAY FSLIT("PArray") parrayTyConKey
paTyConName = tcQual nDP_PARRAY FSLIT("PA") paTyConKey
preprTyConName = tcQual nDP_PARRAY FSLIT("PRepr") preprTyConKey
prTyConName = tcQual nDP_PARRAY FSLIT("PR") prTyConKey
uarrTyConName = tcQual nDP_UARR FSLIT("UArr") uarrTyConKey
parrayIntPrimTyConName = tcQual nDP_PRIM FSLIT("PArray_Int#")
parrayIntPrimTyConKey
mkPRName = varQual nDP_PARRAY FSLIT("mkPR") mkPRIdKey
lengthPAName = varQual nDP_PARRAY FSLIT("lengthPA") lengthPAIdKey
replicatePAName = varQual nDP_PARRAY FSLIT("replicatePA") replicatePAIdKey
...
...
@@ -896,7 +896,7 @@ closureTyConKey = mkPreludeTyConUnique 136
paTyConKey = mkPreludeTyConUnique 137
preprTyConKey = mkPreludeTyConUnique 138
prTyConKey = mkPreludeTyConUnique 139
uarrTyConKey
= mkPreludeTyConUnique 140
parrayIntPrimTyConKey
= mkPreludeTyConUnique 140
---------------- Template Haskell -------------------
...
...
compiler/vectorise/VectBuiltIn.hs
View file @
49dca6ac
...
...
@@ -45,7 +45,7 @@ data Builtins = Builtins {
,
preprTyCon
::
TyCon
,
prTyCon
::
TyCon
,
prDataCon
::
DataCon
,
uarrTyCon
::
TyCon
,
parrayIntPrimTyCon
::
TyCon
,
sumTyCons
::
Array
Int
TyCon
,
closureTyCon
::
TyCon
,
mkPRVar
::
Var
...
...
@@ -79,8 +79,8 @@ initBuiltins
let
[
paDataCon
]
=
tyConDataCons
paTyCon
preprTyCon
<-
dsLookupTyCon
preprTyConName
prTyCon
<-
dsLookupTyCon
prTyConName
uarrTyCon
<-
dsLookupTyCon
uarrTyConName
let
[
prDataCon
]
=
tyConDataCons
prTyCon
parrayIntPrimTyCon
<-
dsLookupTyCon
parrayIntPrimTyConName
closureTyCon
<-
dsLookupTyCon
closureTyConName
sum_tcs
<-
mapM
(
lookupExternalTyCon
nDP_REPR
)
...
...
@@ -109,7 +109,7 @@ initBuiltins
,
preprTyCon
=
preprTyCon
,
prTyCon
=
prTyCon
,
prDataCon
=
prDataCon
,
uarrTyCon
=
uarr
TyCon
,
parrayIntPrimTyCon
=
parrayIntPrim
TyCon
,
sumTyCons
=
sumTyCons
,
closureTyCon
=
closureTyCon
,
mkPRVar
=
mkPRVar
...
...
compiler/vectorise/VectType.hs
View file @
49dca6ac
...
...
@@ -288,8 +288,8 @@ reprVars = mapM (mapM (newLocalVar FSLIT("r"))) . reprTys
arrShapeTys
::
Repr
->
VM
[
Type
]
arrShapeTys
(
SumRepr
{})
=
do
uarr
<-
builtin
uarr
TyCon
return
[
intPrimTy
,
mkTyConApp
uarr
[
intTy
]]
int_arr
<-
builtin
parrayIntPrim
TyCon
return
[
intPrimTy
,
mkTyConApp
int_arr
[]
,
mkTyConApp
int_arr
[
]
]
arrShapeTys
repr
=
return
[
intPrimTy
]
arrShapeVars
::
Repr
->
VM
[
Var
]
...
...
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