[all-commits] [llvm/llvm-project] bfd821: [OpenCL] opencl-c.h: refactor named addrspace buil...

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Fri Jan 28 02:25:13 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bfd8210f6f470d79a78f57ebe02650bbb5a79129
      https://github.com/llvm/llvm-project/commit/bfd8210f6f470d79a78f57ebe02650bbb5a79129
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2022-01-28 (Fri, 28 Jan 2022)

  Changed paths:
    M clang/lib/Headers/opencl-c-base.h
    M clang/lib/Headers/opencl-c.h

  Log Message:
  -----------
  [OpenCL] opencl-c.h: refactor named addrspace builtins

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.

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




More information about the All-commits mailing list