[RFC] Adding LLVM Support for AIX

As part of IBM’s ongoing efforts to improve the AIX ecosystem, we are working on adding support for the AIX platform to LLVM and Clang. Our goal is to have a viable C and C++ LLVM compiler that runs and generates Power code on AIX. The tentative plan is to initially support 32/64 bit mode in AIX 7.1/7.2.

Our initial patches will focus on C support for AIX. In particular, we will be focusing on:

  1. Adding initial XCOFF object file support.

  2. Emitting assembly compatible with the AIX system assembler.

We are also working on setting up AIX build bots and will update the list when we have them ready to go.

Any feedback or comments are welcome.

A first patch to adjust compiler flags, etc. for an AIX build has been posted at https://reviews.llvm.org/D58250. Thank you, Xing!

– HT