[all-commits] [llvm/llvm-project] cd2619: [X86][regcall] Support passing / returning structures

Phoebe Wang via All-commits all-commits at lists.llvm.org
Mon Mar 28 20:30:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd26190a10fceb6e1472fabcd9e1736f62f078c4
      https://github.com/llvm/llvm-project/commit/cd26190a10fceb6e1472fabcd9e1736f62f078c4
  Author: Phoebe Wang <phoebe.wang at intel.com>
  Date:   2022-03-29 (Tue, 29 Mar 2022)

  Changed paths:
    M clang/include/clang/CodeGen/CGFunctionInfo.h
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/test/CodeGen/X86/x86_64-arguments.c
    M clang/test/CodeGen/aarch64-neon-tbl.c
    A clang/test/CodeGen/regcall2.c

  Log Message:
  -----------
  [X86][regcall] Support passing / returning structures

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.

Reviewed By: LuoYuanke

Differential Revision: https://reviews.llvm.org/D122104




More information about the All-commits mailing list