[PATCH] D155863: [X86][Regcall] Add an option to respect regcall ABI v.4 in win64&win32

Bing Yu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 24 02:45:46 PDT 2023


yubing added inline comments.


================
Comment at: llvm/lib/Target/X86/X86CallingConv.td:468
+defm X86_32_RegCallv4_Win :
+	 X86_RegCall_base<RC_X86_32_RegCallv4_Win>;
 defm X86_Win64_RegCall :
----------------
pengfei wrote:
> This will define RetCC_* as well but it is not used, hence will emit warning. Any way to solve it?
yes, in fact retcc should respect regcall4 as well according to https://www.intel.com/content/www/us/en/docs/cpp-compiler/developer-guide-reference/2021-8/c-c-calling-conventions.html#GUID-011A435D-F8D0-46D7-B973-9B704CA5B54E


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D155863



More information about the cfe-commits mailing list