Displaying 3 results from an estimated 3 matches for "testexist".
Did you mean:
test_list
2007 Dec 07
3
[LLVMdev] Calling functions defined in .o files in LLVM code executed in lli
...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/libc.so.6[0x2ada87ac87d0]
/lib/libc.so.6(gsign...
2007 Dec 08
0
[LLVMdev] Calling functions defined in .o files in LLVM code executed in lli
...ions 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. If you want the JIT to work, you need to li...
2007 Dec 08
1
[LLVMdev] Calling functions defined in .o files in LLVM code executed in lli
...gt; 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. If you want t...