search for: llvmcreatejitcompiler

Displaying 4 results from an estimated 4 matches for "llvmcreatejitcompiler".

2009 Nov 19
1
[LLVMdev] llvm-c: LLVMCreateExecutionEngine returning empty error message
...ge is an empty string (it's !=NULL). The steps I'm doing is to create the module, then I call LLVMVerifyModule to verify and it works fine, later I call LLVMCreateModuleProviderForExistingModule and it returns !=NULL MP, so it's ok, but then when I call something like this: error_ret = LLVMCreateJITCompiler(&engine, provider, 0, &verror) It returns 1 in error_ret and an empty string in verror, does someone knows why or how can I get the error message ? Or when it returns an empty error message ? I'm using the pre built 2.6 binaries from default ubuntu karmic installation. Thank you, - Chr...
2009 Nov 05
2
[LLVMdev] Strange error for libLLVMCore.a
mingw, llvm 2.6 (buid with llvm-gcc) Example source code: http://npcontemplation.blogspot.com/2008/06/secret-of-llvm-c-bindings.html I change LLVMCreateJITCompiler(&engine, provider, &error); to LLVMCreateJITCompiler(&engine, provider, 3, &error); $ llvm-gcc `llvm-config --cflags` -c fac.c $ g++ `llvm-config --libs --cflags --ldflags core analysis executionengine jit interpreter native backend engine` fac.o -o fac fac.o: In function `mai...
2009 Oct 21
2
[LLVMdev] Problem initializing a JIT via C bindings
...linking problem I can't figure out. Here's how I'm invoking 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...
2009 Oct 22
0
[LLVMdev] Problem initializing a JIT via C bindings
...out. > > Here's how I'm invoking 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 e...