diff options
author | Richard Osborne <richard@xmos.com> | 2014-02-27 17:47:54 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2014-02-27 17:47:54 +0000 |
commit | cc331c8f40107934b4bfa36d3646126bc0c4a412 (patch) | |
tree | f867df815194a68cc433659c8c4b73325e663193 /lib/Target/XCore/XCoreISelLowering.h | |
parent | 870d997d8cd300b266e3157cddda357a80d702d5 (diff) | |
download | llvm-cc331c8f40107934b4bfa36d3646126bc0c4a412.tar.gz llvm-cc331c8f40107934b4bfa36d3646126bc0c4a412.tar.bz2 llvm-cc331c8f40107934b4bfa36d3646126bc0c4a412.tar.xz |
[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
Diffstat (limited to 'lib/Target/XCore/XCoreISelLowering.h')
-rw-r--r-- | lib/Target/XCore/XCoreISelLowering.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/XCore/XCoreISelLowering.h b/lib/Target/XCore/XCoreISelLowering.h index afffcea790..65e2bad4f0 100644 --- a/lib/Target/XCore/XCoreISelLowering.h +++ b/lib/Target/XCore/XCoreISelLowering.h @@ -42,6 +42,9 @@ namespace llvm { // cp relative address CPRelativeWrapper, + // Load word from stack + LDWSP, + // Store word to stack STWSP, |