From cc331c8f40107934b4bfa36d3646126bc0c4a412 Mon Sep 17 00:00:00 2001 From: Richard Osborne Date: Thu, 27 Feb 2014 17:47:54 +0000 Subject: [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/XCoreISelLowering.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/Target/XCore/XCoreISelLowering.h') 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, -- cgit v1.2.3