Go to file
Yaxun Liu a4005e13f7 [CUDA][HIP] Allow function-scope static const variable
CUDA 8.0 E.3.9.4 says: Within the body of a __device__ or __global__
function, only __shared__ variables or variables without any device
memory qualifiers may be declared with static storage class.

It is unclear how a function-scope non-const static variable
without device memory qualifier is implemented, therefore only static
const variable without device memory qualifier is allowed, which
can be emitted as a global variable in constant address space.

Currently clang only allows function-scope static variable with
__shared__ qualifier.

This patch also allows function-scope static const variable without
device memory qualifier and emits it as a global variable in constant
address space.

Differential Revision: https://reviews.llvm.org/D49931

llvm-svn: 338188
2018-07-28 03:05:25 +00:00
clang [CUDA][HIP] Allow function-scope static const variable 2018-07-28 03:05:25 +00:00
clang-tools-extra [clang-tidy] Fix a crash in fuchsia-multiple-inheritance 2018-07-27 14:05:39 +00:00
compiler-rt [test] Use printf instead of C++ iostream, NFC. 2018-07-26 18:23:40 +00:00
debuginfo-tests [DebugInfo] LowerDbgDeclare: Add derefs when handling CallInst users 2018-07-26 20:56:53 +00:00
libclc atom: Use volatile pointers for cl_khr_{global,local}_int32_{base,extended}_atomics 2018-06-21 19:27:39 +00:00
libcxx [libc++] Exclude posix_l/strtonum fallback inclusion for newlib > 2.4 2018-07-27 20:02:58 +00:00
libcxxabi [demangler] Support for reference collapsing 2018-07-27 17:27:40 +00:00
libunwind [CMake] Include CMakeDependentOption in libunwind 2018-07-24 23:42:51 +00:00
lld Reland r338088, "ELF: Make --print-icf-sections output deterministic." 2018-07-27 19:10:44 +00:00
lldb Add the actually calculated completions to COMPLETION_MSG 2018-07-27 23:42:34 +00:00
llgo Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
llvm [Dominators] Make applyUpdate's documentation less confusing [NFC] 2018-07-28 00:54:07 +00:00
openmp [OMPT] Fix OMPT callbacks for the taskloop construct and add testcase 2018-07-27 18:13:24 +00:00
parallel-libs Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
polly [test] Remove non-JSPON comments in JSCOP file. NFC. 2018-07-28 01:11:45 +00:00
README.md

README.md

Low Level Virtual Machine (LLVM)

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.