llvm-project/clang/lib
Justin Lebar 0254c46300 [CUDA] Make touching a kernel from a __host__ __device__ function a deferred error.
Previously, this was an immediate, don't pass go, don't collect $200
error.  But this precludes us from writing code like

  __host__ __device__ void launch_kernel() {
    kernel<<<...>>>();
  }

Such code isn't wrong, following our notions of right and wrong in CUDA,
unless it's codegen'ed.

llvm-svn: 283963
2016-10-12 01:30:08 +00:00
..
ARCMigrate [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
AST Revert r283887 and r283882, until the issue is understood and fixed. 2016-10-11 15:51:06 +00:00
ASTMatchers [AST] Convert Marshallers to use unique_ptr. 2016-10-10 16:26:40 +00:00
Analysis [Analysis] Use unique_ptr for CallGraph::FunctionMap. 2016-10-10 16:26:48 +00:00
Basic Turn FileManager DirectoryEntry::Name from raw pointer to StringRef (NFC) 2016-10-11 07:31:29 +00:00
CodeGen Pass the end of a component to SwiftAggLowering's enumerateComponents callback 2016-10-11 20:34:03 +00:00
Driver Revert - When optimizing for size, enable loop rerolling by default 2016-10-11 22:09:13 +00:00
Edit [OpenCL] Generate opaque type for sampler_t and function call for the initializer 2016-07-28 19:26:30 +00:00
Format Make DeletedLines local variables in checkEmptyNamespace. 2016-10-05 15:49:01 +00:00
Frontend Reapply [Driver][Diagnostics] Make 'show option names' default for driver warnings 2016-10-11 18:21:26 +00:00
FrontendTool C++ Modules TS: add frontend support for building pcm files from module 2016-08-26 00:14:38 +00:00
Headers [CUDA] Re-land support for <complex> (r283683 and r283680). 2016-10-11 17:36:03 +00:00
Index Visit lambda capture inits from RecursiveASTVisitor::TraverseLambdaCapture(). 2016-08-17 14:59:53 +00:00
Lex Turn FileManager DirectoryEntry::Name from raw pointer to StringRef (NFC) 2016-10-11 07:31:29 +00:00
Parse [CUDA] Add #pragma clang force_cuda_host_device_{begin,end} pragmas. 2016-10-08 22:15:58 +00:00
Rewrite [analyzer] Re-apply r283092, attempt no.4, chunk no.4 (last) 2016-10-07 19:25:10 +00:00
Sema [CUDA] Make touching a kernel from a __host__ __device__ function a deferred error. 2016-10-12 01:30:08 +00:00
Serialization Revert r283887 and r283882, until the issue is understood and fixed. 2016-10-11 15:51:06 +00:00
StaticAnalyzer [analyzer] Fix build error after r283660 - remove constexpr strings. 2016-10-08 11:07:21 +00:00
Tooling Use llvm::raw_string_ostream instead of std::stringstream (NFC) 2016-10-06 04:26:16 +00:00
CMakeLists.txt