aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2015-08-13 13:37:06 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2015-08-13 13:37:06 +0000
commita887f0621459c8a3b060fdef3970faecbde285fb (patch)
tree50e1a605f1f3d5f7502e53ce4f7c9a59ebc03823 /clang/lib/Lex/ModuleMap.cpp
parenta3668a3fcd309d9178f1caa78a2c31156bcb7b4f (diff)
downloadllvm-a887f0621459c8a3b060fdef3970faecbde285fb.zip
llvm-a887f0621459c8a3b060fdef3970faecbde285fb.tar.gz
llvm-a887f0621459c8a3b060fdef3970faecbde285fb.tar.bz2
[SystemZ] Support large LLVM IR struct return values
Recent mesa/llvmpipe crashes on SystemZ due to a failed assertion when attempting to compile a routine with a return type of { <4 x float>, <4 x float>, <4 x float>, <4 x float> } on a system without vector instruction support. This is because after legalizing the vector type, we get a return value consisting of 16 floats, which cannot all be returned in registers. Usually, what should happen in this case is that the target's CanLowerReturn routine rejects the return type, in which case SelectionDAG falls back to implementing a structure return in memory via implicit reference. However, the SystemZ target never actually implemented any CanLowerReturn routine, and thus would accept any struct return type. This patch fixes the crash by implementing CanLowerReturn. As a side effect, this also handles fp128 return values, fixing a todo that was noted in SystemZCallingConv.td. llvm-svn: 244889
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions