[PATCH] D33989: [OpenCL] Allow targets to select address space per type

Sven van Haastregt via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 7 06:00:53 PDT 2017


svenvh created this revision.

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

No functional changes intended.  In particular, this is already
covered by test/CodeGenOpenCL/opencl_types.cl .

Patch by Simon Perretta.


https://reviews.llvm.org/D33989

Files:
  include/clang/Basic/TargetInfo.h
  lib/AST/ASTContext.cpp
  lib/Basic/Targets.cpp
  lib/CodeGen/CGOpenCLRuntime.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33989.101718.patch
Type: text/x-patch
Size: 6503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170607/e7a19ca2/attachment.bin>


More information about the cfe-commits mailing list