[XCore] Support functions returning more than 4 words.
authorRichard Osborne <richard@xmos.com>
Thu, 27 Feb 2014 17:47:54 +0000 (17:47 +0000)
committerRichard Osborne <richard@xmos.com>
Thu, 27 Feb 2014 17:47:54 +0000 (17:47 +0000)
commitcc331c8f40107934b4bfa36d3646126bc0c4a412
treef867df815194a68cc433659c8c4b73325e663193
parent870d997d8cd300b266e3157cddda357a80d702d5
[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
lib/Target/XCore/XCoreCallingConv.td
lib/Target/XCore/XCoreISelLowering.cpp
lib/Target/XCore/XCoreISelLowering.h
lib/Target/XCore/XCoreInstrInfo.td
lib/Target/XCore/XCoreMachineFunctionInfo.h
test/CodeGen/XCore/bigstructret.ll