]> granicus.if.org Git - clang/commit
The OpenCL specification states that images are allocated
authorPekka Jaaskelainen <pekka.jaaskelainen@tut.fi>
Thu, 9 Jan 2014 13:37:30 +0000 (13:37 +0000)
committerPekka Jaaskelainen <pekka.jaaskelainen@tut.fi>
Thu, 9 Jan 2014 13:37:30 +0000 (13:37 +0000)
commit3e2101f5a61e4d05480e2a164296081d01be38c2
tree8b7f8193e63f3671c17e3abfc5bc760b0b042926
parent371bac98f4d6079edca2fce250ce4c548b348b17
The OpenCL specification states that images are allocated
from the global address space (6.5.1 of the OpenCL 1.2 specification).
This makes clang construct the image arguments in the global address
space and generate the argument metadata with the correct address space
descriptor.

Patch by Pedro Ferreira!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198868 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenCLRuntime.cpp
lib/CodeGen/CodeGenFunction.cpp
test/CodeGenOpenCL/kernel-arg-info.cl