Displaying 6 results from an estimated 6 matches for "llvminitializealltargets".
2013 May 11
2
[LLVMdev] [llvm-c]
...ess the LLVM target registry 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(Ta...
2013 May 13
0
[LLVMdev] [llvm-c]
...; 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...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...unc() {
entry:
%call = call i32 @a_outside_func(i32 15)
ret 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;...
2013 May 14
1
[LLVMdev] [llvm-c]
...unately 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 <> ni...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...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));...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...ot; 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.......