search for: llvminitializealltargetinfos

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

2013 May 11
2
[LLVMdev] [llvm-c]
...ry via the LLVM-C interface. Unfortunately I can't seem to get some useful information out of it. Despite the fact that the following code is written in Pascal, can you please tell me if I have done something wrong here? // initialize all targets / target information LLVMInitializeAllTargets; LLVMInitializeAllTargetInfos; // initialize native target in particular LLVMInitializeNativeTarget; // get first target Target := LLVMGetFirstTarget; // loop until the target is NULL while (Target <> nil) do begin // get target name & description TargetName := LLVMGetTargetName(Target); TargetDescription :=...
2013 May 13
0
[LLVMdev] [llvm-c]
...ly I can't seem to get some useful > information out of it. > > Despite the fact that the following code is written in Pascal, can you > please tell me if I have done something wrong here? > > // initialize all targets / target information > LLVMInitializeAllTargets; > LLVMInitializeAllTargetInfos; > > // initialize native target in particular > LLVMInitializeNativeTarget; > > // get first target > Target := LLVMGetFirstTarget; > > // loop until the target is NULL > while (Target <> nil) do > begin > // get target name & description > Targ...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...t i32 %call } where a_outside_func is a function defined on my code: extern "C" int a_outside_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; LLVMCreate...
2013 May 14
1
[LLVMdev] [llvm-c]
...e useful >> information out of it. >> >> Despite the fact that the following code is written in Pascal, can you >> please tell me if I have done something wrong here? >> >> // initialize all targets / target information >> LLVMInitializeAllTargets; >> LLVMInitializeAllTargetInfos; >> >> // initialize native target in particular >> LLVMInitializeNativeTarget; >> >> // get first target >> Target := LLVMGetFirstTarget; >> >> // loop until the target is NULL >> while (Target <> nil) do >> begin >> // get...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...outside_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; &gt...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...> } > >> > > >> > 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 > &gt...