[PATCH] D121767: [AVR] Fix incorrect calling convention for varargs functions

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 15 20:11:50 PDT 2022


benshi001 created this revision.
benshi001 added reviewers: aykevl, dylanmckay.
Herald added subscribers: Jim, hiraditya.
Herald added a project: All.
benshi001 requested review of this revision.
Herald added subscribers: llvm-commits, jacquesguan.
Herald added a project: LLVM.

An i8 argument should only cost 1 byte on the stack. This is
compatible with avr-gcc.

There are also more test cases (of calling convention) are added.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121767

Files:
  llvm/lib/Target/AVR/AVRCallingConv.td
  llvm/test/CodeGen/AVR/calling-conv/c/basic.ll
  llvm/test/CodeGen/AVR/calling-conv/c/basic_aggr.ll
  llvm/test/CodeGen/AVR/calling-conv/c/stack.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121767.415681.patch
Type: text/x-patch
Size: 9716 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220316/bd565192/attachment.bin>


More information about the llvm-commits mailing list