aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues.cpp
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2019-05-27 11:19:07 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2019-05-27 11:19:07 +0000
commita53d48b7f45d45c7ffbfe9cffcf6be078cab2f66 (patch)
tree9a30aa1f8b8e1e79d4b2484cd8919f107aff4cea /llvm/lib/CodeGen/LiveDebugValues.cpp
parentc675215f679979400ac856a98034ba2907c1a063 (diff)
downloadllvm-a53d48b7f45d45c7ffbfe9cffcf6be078cab2f66.zip
llvm-a53d48b7f45d45c7ffbfe9cffcf6be078cab2f66.tar.gz
llvm-a53d48b7f45d45c7ffbfe9cffcf6be078cab2f66.tar.bz2
[OpenCL] Fix file-scope const sampler variable for 2.0
OpenCL spec v2.0 s6.13.14: Samplers can also be declared as global constants in the program source using the following syntax. const sampler_t <sampler name> = <value> This works fine for OpenCL 1.2 but fails for 2.0, because clang duduces address space of file-scope const sampler variable to be in global address space whereas spec v2.0 s6.9.b forbids file-scope sampler variable to be in global address space. The fix is not to deduce address space for file-scope sampler variables. Differential Revision: https://reviews.llvm.org/D62197 llvm-svn: 361757
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
0 files changed, 0 insertions, 0 deletions