]> granicus.if.org Git - clang/commit
[OpenCL] Allow targets to select address space per type
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Tue, 15 Aug 2017 09:38:18 +0000 (09:38 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Tue, 15 Aug 2017 09:38:18 +0000 (09:38 +0000)
commit7ac28eb0a5acdf20f912938e0c609426986bb866
tree44473006ee2404c67873726f4b7462e33c478aef
parent7890d5abb1ff405e1e7f98370964d8295cd0bc63
[OpenCL] Allow targets to select address space per type

Generalize getOpenCLImageAddrSpace into getOpenCLTypeAddrSpace, such
that targets can select the address space per type.

No functional changes intended.

Initial patch by Simon Perretta.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310911 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TargetInfo.h
lib/AST/ASTContext.cpp
lib/Basic/TargetInfo.cpp
lib/Basic/Targets/AMDGPU.h
lib/CodeGen/CGOpenCLRuntime.cpp
lib/CodeGen/CGOpenCLRuntime.h
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenTypes.cpp
test/CodeGenOpenCL/opencl_types.cl