[PATCH] D122104: [X86][regcall] Support passing / returning structures

Phoebe Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 20 09:44:50 PDT 2022


pengfei created this revision.
pengfei added reviewers: erichkeane, craig.topper, LiuChen3, LuoYuanke.
Herald added a project: All.
pengfei requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Currently, the regcall calling conversion in Clang doesn't match with
ICC when passing / returning structures. https://godbolt.org/z/axxKMKrW7

This patch tries to fix the problem to match with ICC.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122104

Files:
  clang/include/clang/CodeGen/CGFunctionInfo.h
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/CodeGen/CodeGenFunction.cpp
  clang/lib/CodeGen/TargetInfo.cpp
  clang/test/CodeGen/aarch64-neon-tbl.c
  clang/test/CodeGen/regcall2.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122104.416789.patch
Type: text/x-patch
Size: 23703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220320/808259b1/attachment-0001.bin>


More information about the cfe-commits mailing list