aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Utils.cpp
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2016-02-02 22:29:48 +0000
committerArtem Belevich <tra@google.com>2016-02-02 22:29:48 +0000
commit97c01c35f8da48b47c397fd915a82bd1d881d4ab (patch)
tree06d8b1e2ae200287569e9ad71bdaa548e5ef75d6 /llvm/lib/Transforms/Utils/Utils.cpp
parent8abc2e51b81efe2f540f6a61a3028f8fe72fe478 (diff)
downloadllvm-97c01c35f8da48b47c397fd915a82bd1d881d4ab.zip
llvm-97c01c35f8da48b47c397fd915a82bd1d881d4ab.tar.gz
llvm-97c01c35f8da48b47c397fd915a82bd1d881d4ab.tar.bz2
[CUDA] Do not allow dynamic initialization of global device side variables.
In general CUDA does not allow dynamic initialization of global device-side variables. One exception is that CUDA allows records with empty constructors as described in section E2.2.1 of CUDA 7.5 Programming guide. This patch applies initializer checks for all device-side variables. Empty constructors are accepted, but no code is generated for them. Differential Revision: http://reviews.llvm.org/D15305 llvm-svn: 259592
Diffstat (limited to 'llvm/lib/Transforms/Utils/Utils.cpp')
0 files changed, 0 insertions, 0 deletions