search for: llvmcreatejitcompilerformodule

Displaying 7 results from an estimated 7 matches for "llvmcreatejitcompilerformodule".

2012 Apr 25
2
[LLVMdev] Crash in JIT
...nJIT(); LLVMLinkInInterpreter(); LLVMInitializeNativeTarget(); LLVMDumpModule(module); /* Now run it! */ LLVMExecutionEngineRef jit = NULL; char *err; // LLVMBool result = LLVMCreateExecutionEngineForModule(&jit, module, &err); LLVMBool result = LLVMCreateJITCompilerForModule(&jit, module, 0, &err); if (result) { printf("Fail: %s\n", err); return -1; } printf("JIT is %p\n", jit); LLVMGenericValueRef argM = LLVMCreateGenericValueOfInt(int32, 10, 0); LLVMGenericValueRef argX = LLVMCreateGenericValueOfInt...
2010 Aug 12
0
[LLVMdev] LLVM-C: Calling functions contained in other libraries
On Aug 12, 2010, at 10:43 AM, F van der Meeren wrote: > Where am I going wrong here? > Did you link against the library that contains the function? -eric
2012 Apr 25
0
[LLVMdev] Crash in JIT
...LLVMLinkInJIT(); LLVMLinkInInterpreter(); LLVMInitializeNativeTarget(); LLVMDumpModule(module); /* Now run it! */ LLVMExecutionEngineRef jit = NULL; char *err; // LLVMBool result = LLVMCreateExecutionEngineForModule(&jit, module, &err); LLVMBool result = LLVMCreateJITCompilerForModule(&jit, module, 0, &err); if (result) { printf("Fail: %s\n", err); return -1; } printf("JIT is %p\n", jit); LLVMGenericValueRef argM = LLVMCreateGenericValueOfInt(int32, 10, 0); LLVMGenericValueRef argX = LLVMCreateGenericValueOfInt(in...
2010 Aug 12
3
[LLVMdev] LLVM-C: Calling functions contained in other libraries
Hello, I have a question concerning llvm-c. I have set up a function that needs to invoke an external method, in a other library. It has the following signature: void* NSFullUserName(void); The void* can be replaced with a i8*, that far I was able to get, but when my call is invoked, the engine gives me the following message: LLVM ERROR: Tried to execute an unknown external function: i8* ()*
2012 Sep 27
0
[LLVMdev] Possible bug or misunderstanding of feature LLVMConstIntOfString
...on(vFnMain, LLVMPrintMessageAction); printf("\n[llvmPrintf# %s] Dumping LLVM generated Code:\n", moduleName); LLVMDumpModule(modCEx); // Compile and JIT above generated function: LLVMInitializeNativeTarget(); LLVMExecutionEngineRef engExe; char * pErr = NULL; LLVMCreateJITCompilerForModule(&engExe, modCEx, 4, &pErr); if (pErr) { printf("[Creating JIT Compiler] Error: %s\n", pErr); LLVMDisposeMessage(pErr); exit(0); } LLVMPassManagerRef rPassMgr = LLVMCreatePassManager(); LLVMAddTargetData(LLVMGetExecutionEngineTargetData(engE...
2012 Mar 16
2
Wine has probs with Mount & Blade Warband
...eau_dri.so (0x7c4a2640) > 8 0xb638c26f _ZN4llvm3JIT9createJITEPNS_6ModuleEPSsPNS_16JITMemoryManagerENS_10CodeGenOpt5LevelEbPNS_13TargetMachineE+0x8e() in nouveau_dri.so (0x7c49e6a4) > 9 0xb63a191a _ZN4llvm13EngineBuilder6createEv+0x159() in nouveau_dri.so (0x00000000) > 10 0xb63a9e12 LLVMCreateJITCompilerForModule+0x91() in nouveau_dri.so (0x0440eecc) > 11 0xb635cc02 in nouveau_dri.so (+0x3adc01) (0x7c4a7c38) > 12 0xb635cd03 in nouveau_dri.so (+0x3add02) (0x7c4a7c38) > 13 0xb62faca5 in nouveau_dri.so (+0x34bca4) (0x7c4a7c38) > 14 0xb62facd7 in nouveau_dri.so (+0x34bcd6) (0x7c4a7c38) >...
2015 Oct 17
3
The future of LLVM's C APIs: Notes and BoF.
(Moving this to llvm-dev) On Friday, October 16, 2015, Justin Bogner <mail at justinbogner.com> wrote: > Some users of llvm-c want stable API interfaces into various parts of > the LLVM infrasture, others want further ABI guarantees about this > usage, and still others simply want a way to bind to LLVM through their > language frontend’s existing FFI support for C. > > If