[PATCH] D85917: [MSP430] Fix passing C structs and unions as function arguments

Anatoly Trosinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 11:13:01 PDT 2020


atrosinenko created this revision.
atrosinenko added reviewers: asl, krisb, arsenm, rjmccall, jdoerfert.
Herald added a project: clang.
atrosinenko requested review of this revision.
Herald added a subscriber: wdng.

Pass structures, classes and unions by reference on MSP430, according to Section 3.5 of MSP430 EABI <https://www.ti.com/lit/an/slaa534a/slaa534a.pdf>. The callee is responsible for leaving the underlying data intact.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85917

Files:
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/CodeGen/TargetInfo.cpp
  clang/test/CodeGen/msp430-struct-or-union-args.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85917.285435.patch
Type: text/x-patch
Size: 5841 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200813/464401d3/attachment.bin>


More information about the llvm-commits mailing list