forked from OSchip/llvm-project
212cccb2f4
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. The previous version of this patch had a "conditional move or jump depends on uninitialized value". Reviewers: zoran.jovanovic, jaydeep, vkalintiris, slthakur Differential Revision: https://reviews.llvm.org/D27845 llvm-svn: 305083 |
||
---|---|---|
.. | ||
arguments-float.ll | ||
arguments-fp128.ll | ||
arguments-hard-float-varargs.ll | ||
arguments-hard-float.ll | ||
arguments-hard-fp128.ll | ||
arguments-small-structures-bigger-than-32bits.ll | ||
arguments-struct.ll | ||
arguments-varargs-small-structs-byte.ll | ||
arguments-varargs-small-structs-combinations.ll | ||
arguments-varargs-small-structs-multiple-args.ll | ||
arguments-varargs.ll | ||
arguments.ll | ||
callee-saved-float.ll | ||
callee-saved-fpxx.ll | ||
callee-saved-fpxx1.ll | ||
callee-saved.ll | ||
memory-layout.ll | ||
reserved-space.ll | ||
return-float.ll | ||
return-hard-float.ll | ||
return-hard-fp128.ll | ||
return-hard-struct-f128.ll | ||
return-struct.ll | ||
return.ll | ||
roundl-call.ll | ||
stack-alignment.ll | ||
vector.ll |