author | Richard Osborne <richard@xmos.com> | |
Thu, 27 Feb 2014 17:47:54 +0000 (17:47 +0000) | ||
committer | Richard Osborne <richard@xmos.com> | |
Thu, 27 Feb 2014 17:47:54 +0000 (17:47 +0000) | ||
commit | cc331c8f40107934b4bfa36d3646126bc0c4a412 | |
tree | f867df815194a68cc433659c8c4b73325e663193 | tree | snapshot (tar.xz tar.gz zip) |
parent | 870d997d8cd300b266e3157cddda357a80d702d5 | commit | diff |
[XCore] Support functions returning more than 4 words.
If a function returns a large struct by value return the first 4 words
in registers and the rest on the stack in a location reserved by the
caller. This is needed to support the xC language which supports
functions returning an arbitrary number of return values. This is
r202397 reapplied with a fix to avoid an uninitialized read of a member.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202414 91177308-0d34-0410-b5e6-96231b3b80d8
If a function returns a large struct by value return the first 4 words
in registers and the rest on the stack in a location reserved by the
caller. This is needed to support the xC language which supports
functions returning an arbitrary number of return values. This is
r202397 reapplied with a fix to avoid an uninitialized read of a member.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202414 91177308-0d34-0410-b5e6-96231b3b80d8