[libcxx-commits] [libcxx] [libc++] Properly implement array cookies in the ARM ABI (PR #160182)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 7 17:57:03 PDT 2025
================
@@ -32,6 +32,8 @@
#else
# if defined(_WIN32) && defined(_MSC_VER)
# define _LIBCPP_ABI_MICROSOFT
+# elif defined(__arm__) || defined(__aarch64__)
+# define _LIBCPP_ABI_ARM
----------------
ldionne wrote:
The best I found was https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Handle-C++-differences.
Also relevant: https://github.com/llvm/llvm-project/blob/bdef80f7a9a1f563f7d2f528e12bb3321d836857/clang/lib/CodeGen/ItaniumCXXABI.cpp#L581-L583
https://github.com/llvm/llvm-project/blob/aed53d19f9f4a6db4210e50712b96d4881d83774/clang/lib/CodeGen/ItaniumCXXABI.cpp#L2561
https://github.com/llvm/llvm-project/blob/bdef80f7a9a1f563f7d2f528e12bb3321d836857/clang/lib/CodeGen/ItaniumCXXABI.cpp#L2588-L2595
https://github.com/llvm/llvm-project/pull/160182
More information about the libcxx-commits
mailing list