diff options
| author | Justin Lebar <jlebar@google.com> | 2016-10-12 01:30:08 +0000 |
|---|---|---|
| committer | Justin Lebar <jlebar@google.com> | 2016-10-12 01:30:08 +0000 |
| commit | 0254c46300a1b6143955c5070806f4170911bd5a (patch) | |
| tree | 05324ece206595ab97b283a2f281acf0a59022b0 /llvm/lib/Transforms/Scalar | |
| parent | c3dc89e4ab37b93c6934759789f48b062db7f120 (diff) | |
| download | bcm5719-llvm-0254c46300a1b6143955c5070806f4170911bd5a.tar.gz bcm5719-llvm-0254c46300a1b6143955c5070806f4170911bd5a.zip | |
[CUDA] Make touching a kernel from a __host__ __device__ function a deferred error.
Previously, this was an immediate, don't pass go, don't collect $200
error. But this precludes us from writing code like
__host__ __device__ void launch_kernel() {
kernel<<<...>>>();
}
Such code isn't wrong, following our notions of right and wrong in CUDA,
unless it's codegen'ed.
llvm-svn: 283963
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
0 files changed, 0 insertions, 0 deletions

