[PATCH] D125415: [ARM64EC 4/?] Add LLVM support for varargs calling convention.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 11 13:43:52 PDT 2022


efriedma created this revision.
Herald added subscribers: zzheng, hiraditya, kristof.beyls.
Herald added a project: All.
efriedma requested review of this revision.
Herald added a project: LLVM.

Part of patchset to add initial support for ARM64EC.

The ARM64EC calling convention is the same as ARM64 for non-varargs functions, but for varargs, the convention is significantly different.  Basically, only x0-x3 registers are used for passing arguments, and x4 and x5 describe the address/size of the arguments passed in memory.  (See https://docs.microsoft.com/en-us/windows/uwp/porting/arm64ec-abi for more details; see https://docs.microsoft.com/en-us/cpp/build/x64-calling-convention for the x64 calling convention rules, which this convention needs to match.)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125415

Files:
  llvm/lib/Target/AArch64/AArch64CallingConvention.h
  llvm/lib/Target/AArch64/AArch64CallingConvention.td
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp
  llvm/test/CodeGen/AArch64/arm64ec-varargs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125415.428758.patch
Type: text/x-patch
Size: 13381 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220511/d9b5c348/attachment.bin>


More information about the llvm-commits mailing list