llvm-tf 9.1 → 9.1.1
raw patch · 5 files changed
+16/−15 lines, 5 files
Files
- example/Align.hs +11/−12
- llvm-tf.cabal +2/−2
- src/LLVM/Core.hs +1/−0
- src/LLVM/Core/CodeGen.hs +1/−0
- src/LLVM/Core/Instructions.hs +1/−1
example/Align.hs view
@@ -1,8 +1,6 @@ module Main (main) where -import LLVM.ExecutionEngine- (getTargetData, abiAlignmentOfType,- storeSizeOfType, intPtrType, littleEndian)+import qualified LLVM.ExecutionEngine as EE import LLVM.Util.Proxy (Proxy(Proxy)) import LLVM.Core (Vector, unsafeTypeRef, initializeNativeTarget) @@ -16,12 +14,13 @@ -- Initialize jitter initializeNativeTarget - td <- getTargetData- print (littleEndian td,- abiAlignmentOfType td $ unsafeTypeRef (Proxy :: Proxy Word32),- abiAlignmentOfType td $ unsafeTypeRef (Proxy :: Proxy Word64),- abiAlignmentOfType td $ unsafeTypeRef (Proxy :: Proxy (Vector D4 Float)),- abiAlignmentOfType td $ unsafeTypeRef (Proxy :: Proxy (Vector D1 Double)),- storeSizeOfType td $ unsafeTypeRef (Proxy :: Proxy (Vector D4 Float)),- intPtrType td- )+ td <- EE.getTargetData+ print (+ EE.littleEndian td,+ EE.abiAlignmentOfType td $ unsafeTypeRef (Proxy :: Proxy Word32),+ EE.abiAlignmentOfType td $ unsafeTypeRef (Proxy :: Proxy Word64),+ EE.abiAlignmentOfType td $ unsafeTypeRef (Proxy :: Proxy (Vector D4 Float)),+ EE.abiAlignmentOfType td $ unsafeTypeRef (Proxy :: Proxy (Vector D1 Double)),+ EE.storeSizeOfType td $ unsafeTypeRef (Proxy :: Proxy (Vector D4 Float)),+ EE.intPtrType td+ )
llvm-tf.cabal view
@@ -1,5 +1,5 @@ Name: llvm-tf-Version: 9.1+Version: 9.1.1 License: BSD3 License-File: LICENSE Synopsis: Bindings to the LLVM compiler toolkit using type families.@@ -39,7 +39,7 @@ Location: http://code.haskell.org/~thielema/llvm-tf/ Source-Repository this- Tag: 9.1+ Tag: 9.1.1 Type: darcs Location: http://code.haskell.org/~thielema/llvm-tf/
src/LLVM/Core.hs view
@@ -44,6 +44,7 @@ -- * Values and constants Value, ConstValue, valueOf, constOf, value, zero, allOnes, undef,+ IsConst, IsConstFields, createString, createStringNul, withString, withStringNul, --constString, constStringNul,
src/LLVM/Core/CodeGen.hs view
@@ -24,6 +24,7 @@ -- * Values Value(..), ConstValue(..), IsConst(..), valueOf, value,+ IsConstFields, zero, allOnes, undef, createString, createStringNul, withString, withStringNul,
src/LLVM/Core/Instructions.hs view
@@ -69,7 +69,7 @@ -- * Classes and types ValueCons2, BinOpValue,- Terminate, Ret, CallArgs, CodeGen.IsConst,+ Terminate, Ret, CallArgs, CodeGen.FunctionArgs, CodeGen.FunctionCodeGen, CodeGen.FunctionResult, AllocArg, GetElementPtr, ElementPtrType, IsIndexArg, IsIndexType,