[PATCH] [XCore] Support functions returning more than 4 words.
Richard Osborne
richard at xmos.com
Wed Feb 26 10:34:16 PST 2014
Hi robertlytton,
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.
http://llvm-reviews.chandlerc.com/D2889
Files:
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2889.1.patch
Type: text/x-patch
Size: 15092 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140226/b0a7e85f/attachment.bin>
More information about the llvm-commits
mailing list