Safe Haskell | Safe |
---|
- linkInInterpreter :: IO ()
- linkInJIT :: IO ()
- linkInMCJIT :: IO ()
- data GenericValue
- type GenericValueRef = Ptr GenericValue
- createGenericValueOfInt :: TypeRef -> CULLong -> CInt -> IO GenericValueRef
- createGenericValueOfPointer :: Ptr a -> IO GenericValueRef
- createGenericValueOfFloat :: TypeRef -> CDouble -> IO GenericValueRef
- genericValueIntWidth :: GenericValueRef -> IO CUInt
- genericValueToInt :: GenericValueRef -> CInt -> IO CULLong
- genericValueToPointer :: GenericValueRef -> IO (Ptr a)
- genericValueToFloat :: TypeRef -> GenericValueRef -> IO CDouble
- ptrDisposeGenericValue :: FunPtr (GenericValueRef -> IO ())
- data ExecutionEngine
- type ExecutionEngineRef = Ptr ExecutionEngine
- createExecutionEngineForModule :: Ptr ExecutionEngineRef -> ModuleRef -> Ptr CString -> IO Bool
- createExecutionEngineForModuleCPU :: Ptr ExecutionEngineRef -> ModuleRef -> Ptr CString -> IO Bool
- createInterpreterForModule :: Ptr ExecutionEngineRef -> ModuleRef -> Ptr CString -> IO Bool
- createJITCompilerForModule :: Ptr ExecutionEngineRef -> ModuleRef -> CUInt -> Ptr CString -> IO Bool
- createMCJITCompilerForModule :: Ptr ExecutionEngineRef -> ModuleRef -> MCJITCompilerOptionsRef -> CSize -> Ptr CString -> IO Bool
- initializeMCJITCompilerOptions :: MCJITCompilerOptionsRef -> CSize -> IO ()
- createExecutionEngine :: Ptr ExecutionEngineRef -> ModuleProviderRef -> Ptr CString -> IO CInt
- createInterpreter :: Ptr ExecutionEngineRef -> ModuleProviderRef -> Ptr CString -> IO CInt
- createJITCompiler :: Ptr ExecutionEngineRef -> ModuleProviderRef -> CUInt -> Ptr CString -> IO CInt
- ptrDisposeExecutionEngine :: FunPtr (ExecutionEngineRef -> IO ())
- disposeExecutionEngine :: ExecutionEngineRef -> IO ()
- runStaticConstructors :: ExecutionEngineRef -> IO ()
- runStaticDestructors :: ExecutionEngineRef -> IO ()
- runFunctionAsMain :: ExecutionEngineRef -> ValueRef -> CUInt -> Ptr CString -> Ptr CString -> IO CInt
- freeMachineCodeForFunction :: ExecutionEngineRef -> ValueRef -> IO ()
- addModule :: ExecutionEngineRef -> ModuleRef -> IO ()
- addModuleProvider :: ExecutionEngineRef -> ModuleProviderRef -> IO ()
- removeModule :: ExecutionEngineRef -> ModuleRef -> Ptr ModuleRef -> Ptr CString -> IO Bool
- removeModuleProvider :: ExecutionEngineRef -> ModuleProviderRef -> Ptr ModuleRef -> Ptr CString -> IO CInt
- findFunction :: ExecutionEngineRef -> CString -> Ptr ValueRef -> IO CInt
- recompileAndRelinkFunction :: ExecutionEngineRef -> ValueRef -> IO (FunPtr a)
- runFunction :: ExecutionEngineRef -> ValueRef -> CUInt -> Ptr GenericValueRef -> IO GenericValueRef
- getExecutionEngineTargetData :: ExecutionEngineRef -> IO TargetDataRef
- addGlobalMapping :: ExecutionEngineRef -> ValueRef -> Ptr a -> IO ()
- addFunctionMapping :: ExecutionEngineRef -> ValueRef -> FunPtr a -> IO ()
- getPointerToGlobal :: ExecutionEngineRef -> ValueRef -> IO (FunPtr a)
Linking
Generic values
type GenericValueRef = Ptr GenericValueSource
createGenericValueOfInt :: TypeRef -> CULLong -> CInt -> IO GenericValueRefSource
createGenericValueOfFloat :: TypeRef -> CDouble -> IO GenericValueRefSource
genericValueIntWidth :: GenericValueRef -> IO CUIntSource
genericValueToInt :: GenericValueRef -> CInt -> IO CULLongSource
genericValueToPointer :: GenericValueRef -> IO (Ptr a)Source
genericValueToFloat :: TypeRef -> GenericValueRef -> IO CDoubleSource
Execution engines
createExecutionEngineForModule :: Ptr ExecutionEngineRef -> ModuleRef -> Ptr CString -> IO BoolSource
createExecutionEngineForModuleCPU :: Ptr ExecutionEngineRef -> ModuleRef -> Ptr CString -> IO BoolSource
createJITCompilerForModule :: Ptr ExecutionEngineRef -> ModuleRef -> CUInt -> Ptr CString -> IO BoolSource
createMCJITCompilerForModule :: Ptr ExecutionEngineRef -> ModuleRef -> MCJITCompilerOptionsRef -> CSize -> Ptr CString -> IO BoolSource
initializeMCJITCompilerOptions :: MCJITCompilerOptionsRef -> CSize -> IO ()Source
createExecutionEngine :: Ptr ExecutionEngineRef -> ModuleProviderRef -> Ptr CString -> IO CIntSource
createInterpreter :: Ptr ExecutionEngineRef -> ModuleProviderRef -> Ptr CString -> IO CIntSource
createJITCompiler :: Ptr ExecutionEngineRef -> ModuleProviderRef -> CUInt -> Ptr CString -> IO CIntSource
removeModule :: ExecutionEngineRef -> ModuleRef -> Ptr ModuleRef -> Ptr CString -> IO BoolSource
removeModuleProvider :: ExecutionEngineRef -> ModuleProviderRef -> Ptr ModuleRef -> Ptr CString -> IO CIntSource
findFunction :: ExecutionEngineRef -> CString -> Ptr ValueRef -> IO CIntSource
recompileAndRelinkFunction :: ExecutionEngineRef -> ValueRef -> IO (FunPtr a)Source
runFunction :: ExecutionEngineRef -> ValueRef -> CUInt -> Ptr GenericValueRef -> IO GenericValueRefSource
addGlobalMapping :: ExecutionEngineRef -> ValueRef -> Ptr a -> IO ()Source
addFunctionMapping :: ExecutionEngineRef -> ValueRef -> FunPtr a -> IO ()Source
getPointerToGlobal :: ExecutionEngineRef -> ValueRef -> IO (FunPtr a)Source