summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-07-27 22:36:21 +0000
committerJustin Lebar <jlebar@google.com>2016-07-27 22:36:21 +0000
commite56360a2cd7cbfe507339a07d279133d2a0718c2 (patch)
tree724e875d1a76eb6254b36c9381a4e9eb2003062a /clang/lib/Driver/Tools.cpp
parent58b377e87d8cc1682a68284a3b253cdcd2bb0b25 (diff)
downloadbcm5719-llvm-e56360a2cd7cbfe507339a07d279133d2a0718c2.tar.gz
bcm5719-llvm-e56360a2cd7cbfe507339a07d279133d2a0718c2.zip
[CUDA] Align kernel launch args correctly when the LLVM type's alignment is different from the clang type's alignment.
Summary: Before this patch, we computed the offsets in memory of args passed to GPU kernel functions by throwing all of the args into an LLVM struct. clang emits packed llvm structs basically whenever it feels like it, and packed structs have alignment 1. So we cannot rely on the llvm type's alignment matching the C++ type's alignment. This patch fixes our codegen so we always respect the clang types' alignments. Reviewers: rnk Subscribers: cfe-commits, tra Differential Revision: https://reviews.llvm.org/D22879 llvm-svn: 276927
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud