projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Nicer names for generated PArray instances
[ghc-hetmet.git]
/
compiler
/
vectorise
/
VectUtils.hs
diff --git
a/compiler/vectorise/VectUtils.hs
b/compiler/vectorise/VectUtils.hs
index
74a3405
..
199ef68
100644
(file)
--- a/
compiler/vectorise/VectUtils.hs
+++ b/
compiler/vectorise/VectUtils.hs
@@
-4,7
+4,7
@@
module VectUtils (
mkPADictType, mkPArrayType,
paDictArgType, paDictOfType,
lookupPArrayFamInst,
mkPADictType, mkPArrayType,
paDictArgType, paDictOfType,
lookupPArrayFamInst,
- hoistExpr
+ hoistExpr, takeHoisted
) where
#include "HsVersions.h"
) where
#include "HsVersions.h"
@@
-119,3
+119,10
@@
hoistExpr fs expr
env { global_bindings = (var, expr) : global_bindings env }
return var
env { global_bindings = (var, expr) : global_bindings env }
return var
+takeHoisted :: VM [(Var, CoreExpr)]
+takeHoisted
+ = do
+ env <- readGEnv id
+ setGEnv $ env { global_bindings = [] }
+ return $ global_bindings env
+