Matt Arsenault
55c4ff91bd
OpaquePtr: Add type to sret attribute
...
Make the corresponding change that was made for byval in
b7141207a483d39b99c2b4da4eb3bb591eca9e1a. Like byval, this requires a
bulk update of the test IR tests to include the type before this can
be mandatory.
2020-09-25 14:07:30 -04:00
Erik Pilkington
de98cf92e3
[CodeGen] Add an alignment attribute to all sret parameters
...
This fixes a miscompile when the parameter is actually underaligned.
rdar://58316406
Differential revision: https://reviews.llvm.org/D74183
2020-03-24 15:31:57 -04:00
Amy Huang
7fac5c8d94
Store a pointer to the return value in a static alloca and let the debugger use that
...
as the variable address for NRVO variables.
Subscribers: hiraditya, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D63361
llvm-svn: 363952
2019-06-20 17:15:21 +00:00
Mandeep Singh Grang
85a0f8fe6c
[COFF, ARM64] Fix ABI implementation of struct returns
...
Summary:
Related llvm patch: D60348.
Patch co-authored by Sanjin Sijaric.
Reviewers: rnk, efriedma, TomTan, ssijaric, ostannard
Reviewed By: efriedma
Subscribers: dmajor, richard.townsend.arm, ostannard, javed.absar, kristof.beyls, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D60349
llvm-svn: 359932
2019-05-03 21:12:24 +00:00
Mandeep Singh Grang
2a153101bf
[COFF, ARM64] Decide when to mark struct returns as SRet
...
Summary:
Refer the MS ARM64 ABI Convention for the behavior for struct returns:
https://docs.microsoft.com/en-us/cpp/build/arm64-windows-abi-conventions#return-values
Reviewers: mstorsjo, compnerd, rnk, javed.absar, yinma, efriedma
Reviewed By: rnk, efriedma
Subscribers: haripul, TomTan, yinma, efriedma, kristof.beyls, chrib, llvm-commits
Differential Revision: https://reviews.llvm.org/D49464
llvm-svn: 338050
2018-07-26 18:07:59 +00:00