Dimitry Andric e86cf8ada1 Merge commit 4ca2cad94 from llvm git (by Justin Hibbits):
[PowerPC] Add clang -msvr4-struct-return for 32-bit ELF

  Summary:

  Change the default ABI to be compatible with GCC. For 32-bit ELF
  targets other than Linux, Clang now returns small structs in
  registers r3/r4. This affects FreeBSD, NetBSD, OpenBSD. There is no
  change for 32-bit Linux, where Clang continues to return all structs
  in memory.

  Add clang options -maix-struct-return (to return structs in memory)
  and -msvr4-struct-return (to return structs in registers) to be
  compatible with gcc. These options are only for PPC32; reject them on
  PPC64 and other targets. The options are like -fpcc-struct-return and
  -freg-struct-return for X86_32, and use similar code.

  To actually return a struct in registers, coerce it to an integer of
  the same size. LLVM may optimize the code to remove unnecessary
  accesses to memory, and will return i32 in r3 or i64 in r3:r4.

  Fixes PR#40736

  Patch by George Koehler!

  Reviewed By: jhibbits, nemanjai
  Differential Revision: https://reviews.llvm.org/D73290

Requested by:	jhibbits
MFC after:	3 days
2020-05-06 19:10:39 +00:00
..
2020-04-21 13:30:00 +00:00
2019-08-11 06:26:03 +00:00
2020-02-11 07:02:48 +00:00
2019-11-01 11:28:43 +00:00
2020-05-04 17:16:30 +00:00
2020-03-29 02:40:03 +00:00
2019-06-29 18:41:40 +00:00
2020-03-02 08:44:58 +00:00
2019-12-21 21:05:53 +00:00
2020-01-25 21:16:45 +00:00
2020-02-19 17:09:08 +00:00
2020-04-06 23:11:43 +00:00
2019-12-09 17:58:22 +00:00
2019-05-08 11:04:09 +00:00
2020-04-19 02:20:39 +00:00
2019-11-20 23:56:20 +00:00
2020-04-23 14:08:40 +00:00
2019-12-21 21:02:50 +00:00
2020-04-24 05:05:58 +00:00
2019-08-22 18:52:30 +00:00
2020-03-22 01:27:38 +00:00