[PATCH] D94143: [AArch64] Add support for the GNU ILP32 ABI

Amanieu d'Antras via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 15 08:49:34 PST 2021


Amanieu added a comment.

In D94143#2500843 <https://reviews.llvm.org/D94143#2500843>, @kristof.beyls wrote:

> My understanding is that AArch64 gnu_ilp32 support is present in mainline gcc, but not in mainline glibc nor in the mainline linux kernel. My understanding is also that it's unlikely that AArch64 gnu_ilp32 support will be added to mainline glibc or linux kernel anytime soon.
> That makes me wonder how useful it is to support AArch64 gnu_ilp32 in mainline LLVM. It seems unlikely that it can be used for linux targets anytime soon. Are there non-linux targets using AArch64 gnu_ilp32?

ILP32  is used internally in Huawei for some network devices, which run a Linux-based RTOS. Until now they have been using a GCC-based toolchain but we would like to use Rust on the platform, which requires LLVM support.

While kernel and glibc support for ILP32 are unlikely to be supported upstream this is not a concern for LLVM: the ILP32 ABI has a published spec and is supported by mainline GCC.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94143/new/

https://reviews.llvm.org/D94143



More information about the llvm-commits mailing list