Builtins in projects/compiler-rt

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

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.

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