[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
Showing
- include/clang/Basic/TargetInfo.h 3 additions, 4 deletionsinclude/clang/Basic/TargetInfo.h
- lib/AST/ASTContext.cpp 9 additions, 20 deletionslib/AST/ASTContext.cpp
- lib/Basic/TargetInfo.cpp 25 additions, 0 deletionslib/Basic/TargetInfo.cpp
- lib/Basic/Targets/AMDGPU.h 15 additions, 1 deletionlib/Basic/Targets/AMDGPU.h
- lib/CodeGen/CGOpenCLRuntime.cpp 14 additions, 14 deletionslib/CodeGen/CGOpenCLRuntime.cpp
- lib/CodeGen/CGOpenCLRuntime.h 2 additions, 2 deletionslib/CodeGen/CGOpenCLRuntime.h
- lib/CodeGen/CodeGenModule.cpp 1 addition, 1 deletionlib/CodeGen/CodeGenModule.cpp
- lib/CodeGen/CodeGenTypes.cpp 1 addition, 1 deletionlib/CodeGen/CodeGenTypes.cpp
- test/CodeGenOpenCL/opencl_types.cl 12 additions, 2 deletionstest/CodeGenOpenCL/opencl_types.cl
Loading
Please register or sign in to comment