summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/attributes-cuda.cu
Commit message (Collapse)AuthorAgeFilesLines
* [CUDA] Added stubs for new attributes used by CUDA headers.Artem Belevich2015-08-101-0/+16
| | | | | | | | | The main purpose is to avoid errors and warnings while parsing CUDA header files. The attributes are currently unused otherwise. Differential version: http://reviews.llvm.org/D11690 llvm-svn: 244497
* [cuda] Driver changes to compile and stitch together host and device-side ↵Artem Belevich2015-07-131-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | CUDA code. NOTE: reverts r242077 to reinstate r242058, r242065, 242067 and includes fix for OS X test failures. - Changed driver pipeline to compile host and device side of CUDA files and incorporate results of device-side compilation into host object file. - Added a test for cuda pipeline creation in clang driver. New clang options: --cuda-host-only - Do host-side compilation only. --cuda-device-only - Do device-side compilation only. --cuda-gpu-arch=<ARCH> - specify GPU architecture for device-side compilation. E.g. sm_35, sm_30. Default is sm_20. May be used more than once in which case one device-compilation will be done per unique specified GPU architecture. Differential Revision: http://reviews.llvm.org/D9509 llvm-svn: 242085
* This reverts commit r242058, r242065, r242067.Rafael Espindola2015-07-131-12/+10
| | | | | | | | | | The tests were failing on OS X. Revert "[cuda] Driver changes to compile and stitch together host and device-side CUDA code." Revert "Fixed regex to properly match '64' in the test case." Revert "clang/test/Driver/cuda-options.cu REQUIRES clang-driver, at least." llvm-svn: 242077
* [cuda] Driver changes to compile and stitch together host and device-side ↵Artem Belevich2015-07-131-10/+12
| | | | | | | | | | | | | | | | | | | | | | | CUDA code. - Changed driver pipeline to compile host and device side of CUDA files and incorporate results of device-side compilation into host object file. - Added a test for cuda pipeline creation in clang driver. New clang options: --cuda-host-only - Do host-side compilation only. --cuda-device-only - Do device-side compilation only. --cuda-gpu-arch=<ARCH> - specify GPU architecture for device-side compilation. E.g. sm_35, sm_30. Default is sm_20. May be used more than once in which case one device-compilation will be done per unique specified GPU architecture. Differential Revision: http://reviews.llvm.org/D9509 llvm-svn: 242058
* Expose the CUDA shared attribute to the C API.Eli Bendersky2014-08-081-2/+5
| | | | | | | | Similar to r209767, which exposed other CUDA-related attributes. Patch by Rob Springer. llvm-svn: 215208
* No longer allow the -std options to entirely override the -x language ↵Aaron Ballman2014-05-291-2/+1
| | | | | | option. This allows -x cuda -std=c++11, for instance. llvm-svn: 209824
* Fixing a test case which was failing the MSVC build bots. When -std isn't ↵Aaron Ballman2014-05-291-1/+1
| | | | | | | | specified with an MSVC build, it defaults to -std=c++11, which overrides the -x cuda option. In turn, this causes all CUDA language option checks to fail. This fix is possibly temporary while we determine whether -x cuda should be considered along with -std=c++11 when setting language options. llvm-svn: 209808
* Expose CUDA function attributes to the C interface.Eli Bendersky2014-05-281-0/+16
Until now all CUDA-specific attributes were represented with CXCursor_UnexposedAttr; now they are actually implemented, including the Python bindings. llvm-svn: 209767
OpenPOWER on IntegriCloud