[PATCH] D100853: [clang][AArch32] Correctly align HA arguments when passed on the stack

Momchil Velikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 20 07:21:01 PDT 2021


chill created this revision.
chill added reviewers: t.p.northover, efriedma, jdoerfert, rnk.
Herald added subscribers: hiraditya, kristof.beyls.
chill requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Analogously to https://reviews.llvm.org/D98794 this patch uses the
`alignstack` attribute to fix incorrect passing of homogeneous
aggregate (HA) arguments on AArch32. The EABI/AAPCS was recently
updated to clarify how VFP co-processor candidates are aligned:
https://github.com/ARM-software/abi-aa/commit/4488e34998514dc7af5507236f279f6881eede62


https://reviews.llvm.org/D100853

Files:
  clang/lib/CodeGen/TargetInfo.cpp
  clang/test/CodeGen/arm-ha-alignstack.c
  llvm/lib/Target/ARM/ARMCallingConv.cpp
  llvm/test/CodeGen/ARM/ha-alignstack-call.ll
  llvm/test/CodeGen/ARM/ha-alignstack.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100853.338859.patch
Type: text/x-patch
Size: 29792 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210420/fcf637f2/attachment-0001.bin>


More information about the llvm-commits mailing list