[clang] [llvm] [clang backend] In AArch64's DataLayout, specify a minimum function alignment of 4. (PR #90702)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Sun May 5 21:11:08 PDT 2024


================
@@ -1480,11 +1480,11 @@ AArch64leTargetInfo::AArch64leTargetInfo(const llvm::Triple &Triple,
 void AArch64leTargetInfo::setDataLayout() {
   if (getTriple().isOSBinFormatMachO()) {
     if(getTriple().isArch32Bit())
-      resetDataLayout("e-m:o-p:32:32-i64:64-i128:128-n32:64-S128", "_");
+      resetDataLayout("e-m:o-p:32:32-i64:64-i128:128-n32:64-S128-Fn32", "_");
----------------
efriedma-quic wrote:

Thumb2 function pointers aren't aligned... but from LLVM's perspective it's a completely different target, so it's not relevant.

https://github.com/llvm/llvm-project/pull/90702


More information about the llvm-commits mailing list