[LLVMdev] lli -force-interpreter complains about external function
Nick Lewycky
nicholas at mxc.ca
Tue Nov 17 21:43:40 PST 2009
Nick Lewycky wrote:
> Xu Yang wrote:
>> Hi Nick:
>>
>> The first problem have been solved by calling llvm-ld:
>>
>> $ llvm-ld -o hellosin.llvm hellosin.bc -lm
>> $ lli -force-interpreter=true -load=/usr/lib/libm.so hellosin.llvm.bc
>> hello sin: 0.50
>
> Only because the optimizer saw sin(constant) and folded it away. The
> entire program became 'print constant string'. There is certainly a bug
> calling sinf() from the interpreter but I don't know what it is yet.
Fixed in r89198.
Nick
More information about the llvm-dev
mailing list