summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-strings/llvm-strings.cpp
diff options
context:
space:
mode:
authorPekka Jaaskelainen <pekka.jaaskelainen@tut.fi>2016-11-14 13:08:30 +0000
committerPekka Jaaskelainen <pekka.jaaskelainen@tut.fi>2016-11-14 13:08:30 +0000
commit2a1cc587bf7753b4eeb5dc295674aeb61f74fb86 (patch)
treeda92ab5c59660e6aec6c91832201aa89ab5844d6 /llvm/tools/llvm-strings/llvm-strings.cpp
parent6a051ba61498863fa41d4a85db8c18fa5e5f032a (diff)
downloadbcm5719-llvm-2a1cc587bf7753b4eeb5dc295674aeb61f74fb86.tar.gz
bcm5719-llvm-2a1cc587bf7753b4eeb5dc295674aeb61f74fb86.zip
[OpenCL] always use SPIR address spaces for kernel_arg_addr_space MD
It doesn't make sense to use the target's address space ids in this context as this is metadata that should be referring to the "logical" OpenCL address spaces. For flat AS machines like all "CPUs" in general, the logical AS info gets lost as there's only one address space (0). This commit changes the logic such that we always use the SPIR address space ids for the argument metadata. It thus allows implementing the clGetKernelArgInfo() and the other detection needs. https://reviews.llvm.org/D26157 llvm-svn: 286819
Diffstat (limited to 'llvm/tools/llvm-strings/llvm-strings.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud