[PATCH] D24975: [CUDA] Add #pragma clang force_cuda_host_device_{begin, end} pragmas.
Justin Lebar via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 27 11:41:58 PDT 2016
jlebar created this revision.
jlebar added a reviewer: rsmith.
jlebar added subscribers: cfe-commits, jhen, tra.
These cause us to consider all functions in-between to be __host__
__device__.
You can nest these pragmas; you just can't have more 'end's than
'begin's.
https://reviews.llvm.org/D24975
Files:
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParsePragma.cpp
clang/lib/Sema/SemaCUDA.cpp
clang/test/Parser/cuda-force-host-device.cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24975.72682.patch
Type: text/x-patch
Size: 7615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160927/0d14f366/attachment.bin>
More information about the cfe-commits
mailing list