Go to file
Simon Dardis 6470ff0b24 [SelectionDAG] Enable target specific vector scalarization of calls and returns
By target hookifying getRegisterType, getNumRegisters, getVectorBreakdown,
backends can request that LLVM to scalarize vector types for calls
and returns.

The MIPS vector ABI requires that vector arguments and returns are passed in
integer registers. With SelectionDAG's new hooks, the MIPS backend can now
handle LLVM-IR with vector types in calls and returns. E.g.
'call @foo(<4 x i32> %4)'.

Previously these cases would be scalarized for the MIPS O32/N32/N64 ABI for
calls and returns if vector types were not legal. If vector types were legal,
a single 128bit vector argument would be assigned to a single 32 bit / 64 bit
integer register.

By teaching the MIPS backend to inspect the original types, it can now
implement the MIPS vector ABI which requires a particular method of
scalarizing vectors.

Previously, the MIPS backend relied on clang to scalarize types such as "call
@foo(<4 x float> %a) into "call @foo(i32 inreg %1, i32 inreg %2, i32 inreg %3,
i32 inreg %4)".

This patch enables the MIPS backend to take either form for vector types.

Reviewers: zoran.jovanovic, jaydeep, vkalintiris, slthakur

Differential Revision: https://reviews.llvm.org/D27845

llvm-svn: 299766
2017-04-07 13:03:52 +00:00
clang CloneDetection.h: Fix warnings. [-Wdocumentation] 2017-04-07 11:06:31 +00:00
clang-tools-extra Fix compiler warnings: "ISO c99 requires rest arguments to be used" on 2017-04-07 12:37:32 +00:00
compiler-rt Add missing import 2017-04-07 01:24:48 +00:00
debuginfo-tests Add an end-to-end testcase for address sanitizer. 2017-04-06 23:36:44 +00:00
libclc math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx Revert "Allow a standard library to implement conditional noexcept for optional and unique_ptr hash functions." 2017-04-07 05:55:28 +00:00
libcxxabi Fix exception address alignment test for EHABI 2017-04-04 14:03:54 +00:00
libunwind Fix unused typedef. Follow up to r299575. 2017-04-06 17:35:35 +00:00
lld [ELF] Recommit r299635 to pad x86 executable sections with 0xcc 2017-04-07 10:36:42 +00:00
lldb Add more tests for ExtractContextAndIdentifier 2017-04-06 23:12:43 +00:00
llgo benchcomp: Add a mode for analyzing file sizes. 2017-04-03 19:13:12 +00:00
llvm [SelectionDAG] Enable target specific vector scalarization of calls and returns 2017-04-07 13:03:52 +00:00
openmp Test cancellation_for_sections.c expectedly fails on GCC 2017-04-04 14:39:52 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Fix missing .git/indexloadPolly in ensure-correct-tile-sizes testcase 2017-04-07 12:55:26 +00:00