Go to file
Justin Lebar e56360a2cd [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
2016-07-27 22:36:21 +00:00
clang [CUDA] Align kernel launch args correctly when the LLVM type's alignment is different from the clang type's alignment. 2016-07-27 22:36:21 +00:00
clang-tools-extra fix typo in clang-rename and clang-tidy docs 2016-07-27 14:26:03 +00:00
compiler-rt [compiler-rt] Fix warnings in interception code 2016-07-27 16:16:54 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Make min follow the OCL 1.0 specs 2016-07-25 22:36:22 +00:00
libcxx Implement LCM and GCD for C++17. Same code as for Library Fundamentals TS. 2016-07-26 14:29:45 +00:00
libcxxabi Attempt to bring peace to -Werror buildbots. 2016-07-19 20:35:09 +00:00
libunwind [libunwind][ARM] Add support for Thumb1 targets 2016-07-25 09:21:56 +00:00
lld [lld][MachO] Add debug info support for MachO. 2016-07-27 21:31:25 +00:00
lldb Fixed "void SBWatchpoint::SetEnabled (bool enabled)" to work properly and added a test for it. 2016-07-27 20:47:49 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm [LVI] Use DenseMap::find_as in LazyValueInfo. 2016-07-27 22:33:36 +00:00
openmp Replace enum types in variadic functions by build-in types. 2016-07-22 16:05:35 +00:00
parallel-libs Add .clang-format to parallel-libs 2016-07-20 17:49:55 +00:00
polly GPGPU: Add basic support for kernel launches 2016-07-27 13:20:16 +00:00