accelerate-llvm-native 1.1.0.0 → 1.1.0.1
raw patch · 3 files changed
+14/−3 lines, 3 filesdep +hashabledep +uniquedep ~llvm-hsdep ~llvm-hs-pure
Dependencies added: hashable, unique
Dependency ranges changed: llvm-hs, llvm-hs-pure
Files
- CHANGELOG.md +5/−0
- Data/Array/Accelerate/LLVM/Native/Embed.hs +5/−1
- accelerate-llvm-native.cabal +4/−2
CHANGELOG.md view
@@ -6,6 +6,10 @@ project adheres to the [Haskell Package Versioning Policy (PVP)](https://pvp.haskell.org) +## [1.1.0.1] - 2017-10-04+### Fixed+ * fix for `runQ*` generating multiple declarations with the same name+ ## [1.1.0.0] - 2017-09-21 ### Added * support for GHC-8.2@@ -24,6 +28,7 @@ * initial release +[1.1.0.1]: https://github.com/AccelerateHS/accelerate-llvm/compare/1.1.0.0...1.1.0.1-native [1.1.0.0]: https://github.com/AccelerateHS/accelerate-llvm/compare/1.0.0.0...1.1.0.0 [1.0.0.0]: https://github.com/AccelerateHS/accelerate-llvm/compare/be7f91295f77434b2103c70aa1cabb6a4f2b09a8...1.0.0.0
Data/Array/Accelerate/LLVM/Native/Embed.hs view
@@ -35,10 +35,13 @@ import Data.Array.Accelerate.LLVM.Native.State import Data.Array.Accelerate.LLVM.Native.Target +import Control.Concurrent.Unique import Control.Monad+import Data.Hashable import Foreign.Ptr import GHC.Ptr ( Ptr(..) ) import Language.Haskell.TH ( Q, TExp )+import Numeric import System.IO.Unsafe import qualified Language.Haskell.TH as TH import qualified Language.Haskell.TH.Syntax as TH@@ -70,7 +73,8 @@ makeFFI :: ShortByteString -> FilePath -> Q (TExp (FunPtr ())) makeFFI (S8.unpack -> fn) objFile = do- fn' <- TH.newName ("__accelerate_llvm_native_" ++ fn)+ i <- TH.runIO newUnique+ fn' <- TH.newName ("__accelerate_llvm_native_" ++ showHex (hash i) []) dec <- TH.forImpD TH.CCall TH.Unsafe ('&':fn) fn' [t| FunPtr () |] ann <- TH.pragAnnD (TH.ValueAnnotation fn') [| (Object objFile) |] TH.addTopDecls [dec, ann]
accelerate-llvm-native.cabal view
@@ -1,5 +1,5 @@ name: accelerate-llvm-native-version: 1.1.0.0+version: 1.1.0.1 cabal-version: >= 1.10 tested-with: GHC >= 7.10 build-type: Simple@@ -162,12 +162,14 @@ , fclabels >= 2.0 , filepath >= 1.0 , ghc+ , hashable >= 1.0 , libffi >= 0.1 , llvm-hs >= 4.1 && < 5.1 , llvm-hs-pure >= 4.1 && < 5.1 , mtl >= 2.2.1 , template-haskell , time >= 1.4+ , unique default-language: Haskell2010@@ -231,7 +233,7 @@ source-repository this type: git- tag: 1.1.0.0+ tag: 1.1.0.1-native location: https://github.com/AccelerateHS/accelerate-llvm.git -- vim: nospell