summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Cuda.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [CUDA] Fix "control reaches end of non-void function" warnings in Cuda.cpp.Justin Lebar2016-07-071-0/+6
| | | | | | | | | | Some compilers are too dumb to realize that the switch statement covers all cases. (Don't use a "default" label, because we explicitly want to get a warning if our switch doesn't cover all the cases.) llvm-svn: 274713
* [CUDA] Add utility functions for dealing with CUDA versions / architectures.Justin Lebar2016-07-061-0/+165
Summary: Currently our handling of CUDA architectures is scattered all around clang. This patch centralizes it. A key advantage of this centralization is that you can now write a C++ switch on e.g. CudaArch and get a compile error if you don't handle one of the enum values. Reviewers: tra Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D21867 llvm-svn: 274681
OpenPOWER on IntegriCloud