OSDN Git Service

[NVPTX] aligned byte-buffers for vector return types
authorJingyue Wu <jingyue@google.com>
Sat, 25 Oct 2014 03:46:16 +0000 (03:46 +0000)
committerJingyue Wu <jingyue@google.com>
Sat, 25 Oct 2014 03:46:16 +0000 (03:46 +0000)
commit1d1d705a95e4a93137382e950ea1d34767d0b9f0
tree5716d628f81924b83855db0e6b2cebb7dbd3284f
parentb31d53a60fae503ebe4118ca8413ef98cf4c739a
[NVPTX] aligned byte-buffers for vector return types

Summary:
Fixes PR21100 which is caused by inconsistency between the declared return type
and the expected return type at the call site. The new behavior is consistent
with nvcc and the NVPTXTargetLowering::getPrototype function.

Test Plan: test/Codegen/NVPTX/vector-return.ll

Reviewers: jholewinski

Reviewed By: jholewinski

Subscribers: llvm-commits, meheff, eliben, jholewinski

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220607 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXISelLowering.cpp
test/CodeGen/NVPTX/vector-return.ll [new file with mode: 0644]