projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49012a1
)
Add utility function for vectorisation
author
Roman Leshchinskiy
<rl@cse.unsw.edu.au>
Fri, 13 Jul 2007 07:32:27 +0000
(07:32 +0000)
committer
Roman Leshchinskiy
<rl@cse.unsw.edu.au>
Fri, 13 Jul 2007 07:32:27 +0000
(07:32 +0000)
compiler/vectorise/VectUtils.hs
patch
|
blob
|
history
diff --git
a/compiler/vectorise/VectUtils.hs
b/compiler/vectorise/VectUtils.hs
index
5cd0471
..
630c425
100644
(file)
--- a/
compiler/vectorise/VectUtils.hs
+++ b/
compiler/vectorise/VectUtils.hs
@@
-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])
+