Hello. I want to use functions in compiler-rt/lib/builtins/ in powerpc64 in AIX. But I found they are not built in neither Linux nor AIX. Have builtin functions not been supported(indicated by the TODO at line about #570 in compiler-rt/cmake/config-ix.cmake)? How much portable work should be done for AIX? Zeson -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160810/dcae0b92/attachment.html>
Saleem Abdulrasool via llvm-dev
2016-Aug-11 03:37 UTC
[llvm-dev] Builtins in projects/compiler-rt
On Wed, Aug 10, 2016 at 3:00 AM, Zeson Wu via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hello. > > I want to use functions in compiler-rt/lib/builtins/ in powerpc64 in AIX. > But I found they are not built in neither Linux nor AIX. > > Have builtin functions not been supported(indicated by the TODO at line > about #570 in compiler-rt/cmake/config-ix.cmake)? > > How much portable work should be done for AIX? > >The builtins are largely target agnostic. It should be relatively straightforward to port to AIX. The harder part is really figuring out how to deal with the builtins in the driver. The parallel installation of clang_rt.builtins is what needs to really be figured out so that you can link against it properly.> > > Zeson > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-- Saleem Abdulrasool compnerd (at) compnerd (dot) org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160810/bac27fd9/attachment.html>
Joerg Sonnenberger via llvm-dev
2016-Aug-11 12:49 UTC
[llvm-dev] Builtins in projects/compiler-rt
On Wed, Aug 10, 2016 at 06:00:17PM +0800, Zeson Wu via llvm-dev wrote:> I want to use functions in compiler-rt/lib/builtins/ in powerpc64 in AIX. > But I found they are not built in neither Linux nor AIX.At least on Linux, libgcc(_s) is often used as RT implementation. I don't know what XLC is doing, so no idea about the AIX side of things. The C version of builtins should be pretty portable, but some compiler and target specific changes might be necessary. Assembler generally assumes either ELF or MachO though, some parts might work with PE-COFF. Joerg