[PATCH] D118158: [OpenCL] opencl-c.h: refactor named addrspace builtins

Sven van Haastregt via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 25 09:02:21 PST 2022


svenvh created this revision.
svenvh added a reviewer: clang.
Herald added subscribers: Naghasan, ldrumm, Anastasia, yaxunl.
svenvh requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

The named address space overloads of builtins that take a pointer
argument are conditionalized on the `__opencl_c_generic_address_space`
feature macro (in a `#else` body).  Introduce an internal feature
macro instead, such that their availability can be controlled in a
single place and independently of the generic address space feature
macro.

This commit does not change the available builtins.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118158

Files:
  clang/lib/Headers/opencl-c-base.h
  clang/lib/Headers/opencl-c.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118158.402939.patch
Type: text/x-patch
Size: 12530 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220125/e3d06a5a/attachment-0001.bin>


More information about the cfe-commits mailing list