Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype MangledSymbol = MangledSymbol ByteString
- data JITSymbolFlags = JITSymbolFlags {
- jitSymbolWeak :: !Bool
- jitSymbolExported :: !Bool
- data JITSymbol = JITSymbol {}
- type SymbolResolverFn = MangledSymbol -> IO JITSymbol
- data SymbolResolver = SymbolResolver {}
- allocWithCleanup :: IORef [IO ()] -> IO a -> (a -> IO ()) -> IO a
- allocFunPtr :: IORef [IO ()] -> IO (FunPtr a) -> IO (FunPtr a)
- createRegisteredDataLayout :: MonadAnyCont IO m => TargetMachine -> IORef [IO ()] -> m (Ptr DataLayout)
Documentation
newtype MangledSymbol Source #
A mangled symbol which can be used in findSymbol
. This can be
created using mangleSymbol
.
Instances
data JITSymbolFlags Source #
JITSymbolFlags | |
|
Instances
JITSymbol | |
|
Instances
Eq JITSymbol Source # | |
Ord JITSymbol Source # | |
Defined in LLVM.Internal.OrcJIT | |
Show JITSymbol Source # | |
(MonadIO m, MonadAnyCont IO m) => DecodeM m JITSymbol (Ptr JITSymbol) Source # | |
Defined in LLVM.Internal.OrcJIT | |
MonadIO m => EncodeM m SymbolResolverFn (FunPtr SymbolResolverFn) Source # | |
Defined in LLVM.Internal.OrcJIT encodeM :: SymbolResolverFn -> m (FunPtr SymbolResolverFn0) Source # | |
MonadIO m => EncodeM m JITSymbol (Ptr JITSymbol -> IO ()) Source # | |
Defined in LLVM.Internal.OrcJIT |
type SymbolResolverFn = MangledSymbol -> IO JITSymbol Source #
data SymbolResolver Source #
Specifies how external symbols in a module added to a
CompielLayer
should be resolved.
SymbolResolver | |
|
Instances
MonadIO m => EncodeM m SymbolResolver (IORef [IO ()] -> IO (Ptr LambdaResolver)) Source # | |
Defined in LLVM.Internal.OrcJIT encodeM :: SymbolResolver -> m (IORef [IO ()] -> IO (Ptr LambdaResolver)) Source # |
allocWithCleanup :: IORef [IO ()] -> IO a -> (a -> IO ()) -> IO a Source #
Allocate the resource and register it for cleanup.
allocFunPtr :: IORef [IO ()] -> IO (FunPtr a) -> IO (FunPtr a) Source #
Allocate a function pointer and register it for cleanup.
createRegisteredDataLayout :: MonadAnyCont IO m => TargetMachine -> IORef [IO ()] -> m (Ptr DataLayout) Source #