Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2016-07-07 | [CUDA] Fix "control reaches end of non-void function" warnings in Cuda.cpp. | Justin Lebar | 1 | -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 | |||||
2016-07-06 | [CUDA] Add utility functions for dealing with CUDA versions / architectures. | Justin Lebar | 1 | -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 |