llvm-0.4.0.3: Bindings to the LLVM compiler toolkitSource codeContentsIndex
LLVM.FFI.ExecutionEngine
Contents
Execution engines
Generic values
Synopsis
data ExecutionEngine
createExecutionEngine :: Ptr ExecutionEngineRef -> ModuleProviderRef -> Ptr CString -> IO CInt
disposeExecutionEngine :: ExecutionEngineRef -> IO ()
createInterpreter :: Ptr ExecutionEngineRef -> ModuleProviderRef -> Ptr CString -> IO CInt
createJITCompiler :: Ptr ExecutionEngineRef -> ModuleProviderRef -> Ptr CString -> IO CInt
addModuleProvider :: ExecutionEngineRef -> ModuleProviderRef -> IO ()
removeModuleProvider :: ExecutionEngineRef -> ModuleProviderRef -> Ptr ModuleRef -> Ptr CString -> IO CInt
findFunction :: ExecutionEngineRef -> CString -> Ptr ValueRef -> IO CInt
freeMachineCodeForFunction :: ExecutionEngineRef -> ValueRef -> IO ()
runStaticConstructors :: ExecutionEngineRef -> IO ()
runStaticDestructors :: ExecutionEngineRef -> IO ()
runFunction :: ExecutionEngineRef -> ValueRef -> CUInt -> Ptr GenericValueRef -> IO GenericValueRef
runFunctionAsMain :: ExecutionEngineRef -> ValueRef -> CUInt -> Ptr CString -> Ptr CString -> IO CInt
getExecutionEngineTargetData :: ExecutionEngineRef -> IO TargetDataRef
addGlobalMapping :: ExecutionEngineRef -> ValueRef -> Ptr () -> IO ()
data GenericValue
type GenericValueRef = Ptr GenericValue
createGenericValueOfInt :: TypeRef -> CULLong -> CInt -> IO GenericValueRef
genericValueToInt :: GenericValueRef -> CInt -> CULLong
genericValueIntWidth :: GenericValueRef -> IO CUInt
createGenericValueOfFloat :: TypeRef -> CDouble -> IO GenericValueRef
genericValueToFloat :: GenericValueRef -> CDouble
createGenericValueOfPointer :: Ptr a -> IO GenericValueRef
genericValueToPointer :: GenericValueRef -> IO (Ptr a)
disposeGenericValue :: GenericValueRef -> IO ()
Execution engines
data ExecutionEngine Source
createExecutionEngine :: Ptr ExecutionEngineRef -> ModuleProviderRef -> Ptr CString -> IO CIntSource
disposeExecutionEngine :: ExecutionEngineRef -> IO ()Source
createInterpreter :: Ptr ExecutionEngineRef -> ModuleProviderRef -> Ptr CString -> IO CIntSource
createJITCompiler :: Ptr ExecutionEngineRef -> ModuleProviderRef -> Ptr CString -> IO CIntSource
addModuleProvider :: ExecutionEngineRef -> ModuleProviderRef -> IO ()Source
removeModuleProvider :: ExecutionEngineRef -> ModuleProviderRef -> Ptr ModuleRef -> Ptr CString -> IO CIntSource
findFunction :: ExecutionEngineRef -> CString -> Ptr ValueRef -> IO CIntSource
freeMachineCodeForFunction :: ExecutionEngineRef -> ValueRef -> IO ()Source
runStaticConstructors :: ExecutionEngineRef -> IO ()Source
runStaticDestructors :: ExecutionEngineRef -> IO ()Source
runFunction :: ExecutionEngineRef -> ValueRef -> CUInt -> Ptr GenericValueRef -> IO GenericValueRefSource
runFunctionAsMainSource
:: ExecutionEngineRef
-> ValueRef
-> CUInt
-> Ptr CStringargv
-> Ptr CStringenvp
-> IO CInt
getExecutionEngineTargetData :: ExecutionEngineRef -> IO TargetDataRefSource
addGlobalMapping :: ExecutionEngineRef -> ValueRef -> Ptr () -> IO ()Source
Generic values
data GenericValue Source
type GenericValueRef = Ptr GenericValueSource
createGenericValueOfInt :: TypeRef -> CULLong -> CInt -> IO GenericValueRefSource
genericValueToInt :: GenericValueRef -> CInt -> CULLongSource
genericValueIntWidth :: GenericValueRef -> IO CUIntSource
createGenericValueOfFloat :: TypeRef -> CDouble -> IO GenericValueRefSource
genericValueToFloat :: GenericValueRef -> CDoubleSource
createGenericValueOfPointer :: Ptr a -> IO GenericValueRefSource
genericValueToPointer :: GenericValueRef -> IO (Ptr a)Source
disposeGenericValue :: GenericValueRef -> IO ()Source
Produced by Haddock version 2.4.2