Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
9c9ff443
Commit
9c9ff443
authored
Jul 13, 2007
by
rl@cse.unsw.edu.au
Browse files
Add utility function for vectorisation
parent
49012a1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/vectorise/VectUtils.hs
View file @
9c9ff443
...
...
@@ -2,7 +2,8 @@ module VectUtils (
collectAnnTypeBinders
,
collectAnnTypeArgs
,
isAnnTypeArg
,
splitClosureTy
,
mkPADictType
,
mkPArrayType
,
paDictArgType
,
paDictOfType
paDictArgType
,
paDictOfType
,
lookupPArrayFamInst
)
where
#
include
"HsVersions.h"
...
...
@@ -104,3 +105,6 @@ paDFunApply dfun tys
dicts
<-
mapM
paDictOfType
tys
return
$
mkApps
(
mkTyApps
dfun
tys
)
dicts
lookupPArrayFamInst
::
Type
->
VM
(
TyCon
,
[
Type
])
lookupPArrayFamInst
ty
=
builtin
parrayTyCon
>>=
(`
lookupFamInst
`
[
ty
])
Write
Preview
Supports
Markdown
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