search for: llvmfindfunct

Displaying 6 results from an estimated 6 matches for "llvmfindfunct".

2010 Feb 03
3
[LLVMdev] Interpreter with multiple modules.
...ction which call "funct()" (M2 declares "funct()" too but it doesn't define it). If I try to run the main function, I got the error "LLVM ERROR: Tried to execute unknown external function: ...". I build the interpreter giving it M1 and then I add M2. I can use the LLVMFindFunction(...) to get the functions "funct()" and "main()" and if I apply LLVMIsDeclaration(...) to these LLVMValueRef, I got false (so the interpreter should know the two functions are defined and it should be able to find their code). Is there something to do to enable the interpret...
2009 Oct 21
2
[LLVMdev] Problem initializing a JIT via C bindings
...g the JIT in 2.5. LLVMInitializeNativeTarget(); <-- for the updated version LLVMCreateMemoryBufferWithContentsOfFile("code.bc", &buffer, &err); LLVMGetBitcodeModuleProvider(buffer, &provider, &err); LLVMCreateJITCompiler(&engine, provider, 1, &err); After that LLVMFindFunction and RunFunction work wonderfully on 2.5. The TOT version errors out on the CreateJITCompiler call with a "JIT has not been linked in" message. I'm compiling it as follows, which completes with no errors on either LLVM version. LLVM_CONFIG=<the llvm-config from the version I w...
2010 Feb 03
0
[LLVMdev] Interpreter with multiple modules.
...nct()" (M2 declares "funct()" too but it doesn't define it). If I > try to run the main function, I got the error "LLVM ERROR: Tried to execute > unknown external function: ...". > > I build the interpreter giving it M1 and then I add M2. I can use the > LLVMFindFunction(...) to get the functions "funct()" and "main()" and if I > apply LLVMIsDeclaration(...) to these LLVMValueRef, I got false (so the > interpreter should know the two functions are defined and it should be able > to find their code). > > Is there something to d...
2009 Oct 22
0
[LLVMdev] Problem initializing a JIT via C bindings
...itializeNativeTarget(); <-- for the updated version > LLVMCreateMemoryBufferWithContentsOfFile("code.bc", &buffer, &err); > LLVMGetBitcodeModuleProvider(buffer, &provider, &err); > LLVMCreateJITCompiler(&engine, provider, 1, &err); > > After that LLVMFindFunction and RunFunction work wonderfully on 2.5. The TOT version errors out on the CreateJITCompiler call with a "JIT has not been linked in" message. > > I'm compiling it as follows, which completes with no errors on either LLVM version. > > LLVM_CONFIG=<the llvm-config...
2010 Feb 28
2
[LLVMdev] Tag number of OCaml Variant in executionengine
...nly distinguish them as the structures, but not the tag number. Zjz 233 /* string -> ExecutionEngine.t -> llvalue option */ 234 CAMLprim value llvm_ee_find_function(value Name, LLVMExecutionEngineRef EE) { 235 CAMLparam1(Name); 236 CAMLlocal1(Option); 237 LLVMValueRef Found; 238 if (LLVMFindFunction(EE, String_val(Name), &Found)) 239 CAMLreturn(Val_unit); 240 Option = alloc(1, 1); 241 Field(Option, 0) = Val_op(Found); 242 CAMLreturn(Option); 243 }
2010 Feb 03
3
[LLVMdev] Interpreter with multiple modules.
...t;funct()" too but it doesn't define it). If I > > try to run the main function, I got the error "LLVM ERROR: Tried to > execute > > unknown external function: ...". > > > > I build the interpreter giving it M1 and then I add M2. I can use the > > LLVMFindFunction(...) to get the functions "funct()" and "main()" and if > I > > apply LLVMIsDeclaration(...) to these LLVMValueRef, I got false (so the > > interpreter should know the two functions are defined and it should be > able > > to find their code). > >...