llvm-hs-6.3.0: General purpose LLVM bindings

Safe HaskellNone
LanguageHaskell2010

LLVM.Internal.OrcJIT

Synopsis

Documentation

data JITSymbolFlags Source #

Contrary to the C++ interface, we do not store the HasError flag here. Instead decoding a JITSymbol produces a sumtype based on whether that flag is set or not.

Constructors

JITSymbolFlags 

Fields

data JITSymbol Source #

Constructors

JITSymbol 

Fields

data SymbolResolver Source #

Specifies how external symbols in a module added to a CompielLayer should be resolved.

Constructors

SymbolResolver 

Fields

Instances
MonadIO m => EncodeM m SymbolResolver (IORef [IO ()] -> IO (Ptr LambdaResolver)) Source # 
Instance details

Defined in LLVM.Internal.OrcJIT

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.