[PATCH] D104123: [llvm][AArch64] Handle arrays of struct properly (from IR)

David Spickett via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 16 02:48:54 PDT 2021


DavidSpickett updated this revision to Diff 352379.
DavidSpickett added a comment.
Herald added subscribers: kbarton, nemanjai.

Pass the data layout to `functionArgumentNeedsConsecutiveRegisters`
instead of getting a new copy for every call.

Found out along the way that in fact Arm has a `isHomogeneousAggregate`
function that is uses. It's following the letter of the ABI, which would
be nice to do here too but I'd rather stick to this for now.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104123

Files:
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
  llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/lib/Target/ARM/ARMISelLowering.h
  llvm/lib/Target/PowerPC/PPCISelLowering.h
  llvm/test/CodeGen/AArch64/argument-blocks-array-of-struct.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104123.352379.patch
Type: text/x-patch
Size: 25236 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210616/fee035af/attachment-0001.bin>


More information about the llvm-commits mailing list