PageRenderTime 54ms CodeModel.GetById 50ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/extra/llvm/engine/engine.factor

http://github.com/abeaumont/factor
Unknown | 57 lines | 40 code | 17 blank | 0 comment | 0 complexity | 72e22cc13694ecfae0c784497acddcd0 MD5 | raw file
 1! Copyright (C) 2009 Matthew Willis.
 2! See http://factorcode.org/license.txt for BSD license.
 3USING: alien.c-types alien.libraries alien.syntax llvm.core ;
 4IN: llvm.engine
 5
 6<<
 7
 8"LLVMExecutionEngine" add-llvm-library
 9"LLVMTarget" add-llvm-library
10"LLVMAnalysis" add-llvm-library
11"LLVMipa" add-llvm-library
12"LLVMTransformUtils" add-llvm-library
13"LLVMScalarOpts" add-llvm-library
14"LLVMCodeGen" add-llvm-library
15"LLVMAsmPrinter" add-llvm-library
16"LLVMSelectionDAG" add-llvm-library
17"LLVMX86CodeGen" add-llvm-library
18"LLVMJIT" add-llvm-library
19"LLVMInterpreter" add-llvm-library
20
21>>
22
23! llvm-c/ExecutionEngine.h
24
25LIBRARY: LLVMExecutionEngine
26
27TYPEDEF: void* LLVMGenericValueRef
28TYPEDEF: void* LLVMExecutionEngineRef
29
30FUNCTION: LLVMGenericValueRef LLVMCreateGenericValueOfInt
31( LLVMTypeRef Ty, ulonglong N, int IsSigned ) ;
32
33FUNCTION: ulonglong LLVMGenericValueToInt
34( LLVMGenericValueRef GenVal, int IsSigned ) ;
35
36FUNCTION: int LLVMCreateExecutionEngine
37( LLVMExecutionEngineRef *OutEE, LLVMModuleProviderRef MP, c-string* OutError ) ;
38
39FUNCTION: int LLVMCreateJITCompiler
40( LLVMExecutionEngineRef* OutJIT, LLVMModuleProviderRef MP, unsigned OptLevel, c-string* OutError ) ;
41
42FUNCTION: void LLVMDisposeExecutionEngine ( LLVMExecutionEngineRef EE ) ;
43
44FUNCTION: void LLVMFreeMachineCodeForFunction ( LLVMExecutionEngineRef EE, LLVMValueRef F ) ;
45
46FUNCTION: void LLVMAddModuleProvider ( LLVMExecutionEngineRef EE, LLVMModuleProviderRef MP ) ;
47
48FUNCTION: int LLVMRemoveModuleProvider
49( LLVMExecutionEngineRef EE, LLVMModuleProviderRef MP, LLVMModuleRef* OutMod, c-string* OutError ) ;
50
51FUNCTION: int LLVMFindFunction
52( LLVMExecutionEngineRef EE, c-string Name, LLVMValueRef* OutFn ) ;
53
54FUNCTION: void* LLVMGetPointerToGlobal ( LLVMExecutionEngineRef EE, LLVMValueRef Global ) ;
55
56FUNCTION: LLVMGenericValueRef LLVMRunFunction
57( LLVMExecutionEngineRef EE, LLVMValueRef F, unsigned NumArgs, LLVMGenericValueRef* Args ) ;