search for: llvminitializealldisassembl

Displaying 3 results from an estimated 3 matches for "llvminitializealldisassembl".

2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...side_func(int a) { return a + 50; } and following code is to get MCJIT work: #define prt(x) if(x) { cout << x << endl; } LLVMInitializeAllTargets(); LLVMInitializeAllTargetMCs(); LLVMInitializeAllTargetInfos(); LLVMInitializeAllAsmParsers(); LLVMInitializeAllAsmPrinters(); LLVMInitializeAllDisassemblers(); // just initialize them all.... prt(a_outside_func(50)); // afraid of linker optmize it out char *err = 0; LLVMMemoryBufferRef ll_f = 0; LLVMModuleRef m = 0; LLVMCreateMemoryBufferWithContentsOfFile("test_load_lib.ll",&ll_f,&err); //read .ll prt(...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...> > > > #define prt(x) if(x) { cout << x << endl; } > > LLVMInitializeAllTargets(); > > LLVMInitializeAllTargetMCs(); > > LLVMInitializeAllTargetInfos(); > > LLVMInitializeAllAsmParsers(); > > LLVMInitializeAllAsmPrinters(); > > LLVMInitializeAllDisassemblers(); // just initialize them all.... > > prt(a_outside_func(50)); // afraid of linker optmize it > out > > > > char *err = 0; > > LLVMMemoryBufferRef ll_f = 0; > > LLVMModuleRef m = 0; > > > LLVMCreateMemoryBufferWithContentsOfFile(&q...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...lt; x << endl; } > >> > LLVMInitializeAllTargets(); > >> > LLVMInitializeAllTargetMCs(); > >> > LLVMInitializeAllTargetInfos(); > >> > LLVMInitializeAllAsmParsers(); > >> > LLVMInitializeAllAsmPrinters(); > >> > LLVMInitializeAllDisassemblers(); // just initialize them all.... > >> > prt(a_outside_func(50)); // afraid of linker optmize > it > >> > out > >> > > >> > char *err = 0; > >> > LLVMMemoryBufferRef ll_f = 0; > >> > LLVMModuleRef m...