[PATCH] [CUDA] Support for built-in cuda variables (threadIdx and its friends).

Artem Belevich tra at google.com
Mon Apr 20 13:25:49 PDT 2015


- Restricted access to built-in variables.
- Implemented warpSize as class subject to the same restrictions as other built-in variables.
- Made all built-in variables extern weak in case we ever emit any references to them.
- Added a test case to check diagnostics on attempt to construct or improperly access a built-in variable.


http://reviews.llvm.org/D9064

Files:
  lib/Headers/CMakeLists.txt
  lib/Headers/cuda/cuda_builtin_vars.h
  test/CodeGenCUDA/cuda-builtin-vars.cu
  test/SemaCUDA/cuda-builtin-vars.cu

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9064.24055.patch
Type: text/x-patch
Size: 9720 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150420/ff162d11/attachment.bin>


More information about the cfe-commits mailing list