[LLVMdev] llvm-gcc cannot emit @llvm.pow.* ?
Zhou Sheng
zhousheng00 at gmail.com
Thu Nov 22 06:15:30 PST 2007
Hi,
2007/11/22, Duncan Sands <baldrick at free.fr>:
>
> PS: It is possible that the C front-end doesn't need to
> explicitly produce BUILT_IN_POW because it is auto-synthesized
> somehow from a call to "pow". I wouldn't know. One way to
> find out is to compile a testcase and rummage around inside
> the gcc trees when they hit llvm-convert.
Yes, they do hit llvm-convert. I created function EmitBuiltinPOW() in
llvm-convert.cpp and
add case BUILT_IN_POW to EmitBuiltinCall . Testcase result shows it will
call EmitBuiltinCall and finally emit llvm.pow.*
Sheng.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071122/c30fb7ef/attachment.html>
More information about the llvm-dev
mailing list