summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-02-24 21:49:33 +0000
committerJustin Lebar <jlebar@google.com>2016-02-24 21:49:33 +0000
commitd7a35492ada22de1ce0b1681a669900de3c72439 (patch)
tree0c400e24e54bb0ab725323cef38fdc2954e02b97 /clang/lib/Driver/Tools.cpp
parentc8dae5378b6e5520e958adf1ae28805916665547 (diff)
downloadbcm5719-llvm-d7a35492ada22de1ce0b1681a669900de3c72439.tar.gz
bcm5719-llvm-d7a35492ada22de1ce0b1681a669900de3c72439.zip
[CUDA] Add conversion operators for threadIdx, blockIdx, gridDim, and blockDim to uint3 and dim3.
Summary: This lets you write, e.g. uint3 a = threadIdx; uint3 b = blockIdx; dim3 c = gridDim; dim3 d = blockDim; which is legal in nvcc, but was not legal in clang. The fact that e.g. the type of threadIdx is not actually uint3 is still observable, but now you have to try to observe it. Reviewers: tra Subscribers: echristo, cfe-commits Differential Revision: http://reviews.llvm.org/D17561 llvm-svn: 261777
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud