llvm-6502/test
Reid Kleckner 805a83c041 Allow sret on the second parameter as well as the first
MSVC always places the implicit sret parameter after the implicit this
parameter of instance methods.  We used to handle this for
x86_thiscallcc by allocating the sret parameter on the stack and leaving
the this pointer in ecx, but that doesn't handle alternative calling
conventions like cdecl, stdcall, fastcall, or the win64 convention.

Instead, change the verifier to allow sret on the second parameter.

This also requires changing the Mips and X86 backends to return the
argument with the sret parameter, instead of assuming that the sret
parameter comes first.

The Sparc backend also returns sret parameters in a register, but I
wasn't able to update it to handle secondary sret parameters.  It
currently calls report_fatal_error if you feed it an sret in the second
parameter.

Reviewers: rafael.espindola, majnemer

Differential Revision: http://reviews.llvm.org/D3617

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208453 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-09 22:32:13 +00:00
..
Analysis add testcase for r208237: do not collect undef terms 2014-05-08 18:38:58 +00:00
Assembler Don't crash on redefinitions. 2014-05-09 21:49:17 +00:00
Bindings
Bitcode IR: Don't allow non-default visibility on local linkage 2014-05-07 22:57:20 +00:00
BugPoint Revert r206989, "Mark llvm/test/BugPoint/compile-custom.ll as XFAIL:vg_leak." It has been fixed since r207265. 2014-04-27 11:59:33 +00:00
CodeGen Allow sret on the second parameter as well as the first 2014-05-09 22:32:13 +00:00
DebugInfo DebugInfo: Correct the attribute type kind. 2014-05-01 18:31:21 +00:00
ExecutionEngine [ARM64] Disable regression tests for the old JIT. 2014-04-29 15:02:40 +00:00
Feature [IR] Make {extract,insert}element accept an index of any integer type. 2014-05-01 22:12:39 +00:00
FileCheck
Instrumentation [asan] Preserve flags in asm instrumentation. 2014-05-08 09:55:24 +00:00
Integer
JitListener
Linker Fix DataLayout::operator==(). 2014-04-22 17:47:03 +00:00
LTO IR: Don't allow non-default visibility on local linkage 2014-05-07 22:57:20 +00:00
MC [mips] Marked up instructions added in MIPS-IV and tested that IAS for -mcpu=mips[123] does not accept them 2014-05-09 14:06:17 +00:00
Object [yaml2obj] Follow-up to the r208228 and r208406. Remove duplicated YAML 2014-05-09 13:57:33 +00:00
Other Do not make -pass-remarks additive. 2014-05-06 19:14:00 +00:00
TableGen test/TableGen: Remove XFAIL:vg_leak out of 3 tests corresponding to r208293. 2014-05-09 08:18:33 +00:00
tools llvm-cov: Handle missing source files as GCOV does 2014-05-07 02:11:23 +00:00
Transforms Add ExtractValue instruction to SimplifyCFG's ComputeSpeculationCost 2014-05-09 17:02:46 +00:00
Unit
Verifier Allow sret on the second parameter as well as the first 2014-05-09 22:32:13 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg [Test] Remove c-index-test from the list of substitutions 2014-05-07 18:16:02 +00:00
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh