Displaying 3 results from an estimated 3 matches for "glimi".
Did you mean:
glim
2007 Dec 07
3
[LLVMdev] Calling functions defined in .o files in LLVM code executed in lli
...ike to call these
from my LLVM code. If I declare these primitive functions in the LLVM
code and link the bitcode file and the .o file with llvm-ld it works
only if I generate native code. If I omit the -native flag to llvm-ld
and execute the generated shell script a.out I get the following error:
glimi at brodie:~$ llvm-ld ../../prim.o TestExist.bc && ./a.out
ERROR: Program used external function 'primPatternMatchFailure' which
could not be resolved!
lli((anonymous namespace)::PrintStackTrace()+0x15)[0x852c55]
lli((anonymous namespace)::SignalHandler(int)+0x216)[0x852fe6]
/lib/li...
2007 Dec 08
0
[LLVMdev] Calling functions defined in .o files in LLVM code executed in lli
...code. If I declare these primitive functions in the LLVM
> code and link the bitcode file and the .o file with llvm-ld it works
> only if I generate native code. If I omit the -native flag to llvm-ld
> and execute the generated shell script a.out I get the following
> error:
>
> glimi at brodie:~$ llvm-ld ../../prim.o TestExist.bc && ./a.out
This fails because "a.out" is a shell script that is invoking the JIT.
> Is there a way to link the functions declared in the .o file in the
> bitcode without compiling the C sources with llvm-gcc?
Yes, certainly....
2007 Dec 08
1
[LLVMdev] Calling functions defined in .o files in LLVM code executed in lli
...se primitive functions in the LLVM
>> code and link the bitcode file and the .o file with llvm-ld it works
>> only if I generate native code. If I omit the -native flag to llvm-ld
>> and execute the generated shell script a.out I get the following
>> error:
>>
>> glimi at brodie:~$ llvm-ld ../../prim.o TestExist.bc && ./a.out
>
> This fails because "a.out" is a shell script that is invoking the JIT.
>
>> Is there a way to link the functions declared in the .o file in the
>> bitcode without compiling the C sources with llvm-g...