[all-commits] [llvm/llvm-project] 8e6099: [OpenCL] Make generic addrspace optional for -fdec...

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Mon Jan 31 02:21:52 PST 2022


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

  Changed paths:
    M clang/lib/Sema/OpenCLBuiltins.td
    M clang/test/CodeGenOpenCL/fdeclare-opencl-builtins.cl
    M clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl

  Log Message:
  -----------
  [OpenCL] Make generic addrspace optional for -fdeclare-opencl-builtins

Currently, -fdeclare-opencl-builtins always adds the generic address
space overloads of e.g. the vload builtin functions in OpenCL 3.0
mode, even when the generic address space feature is disabled.

Guard the generic address space overloads by the
`__opencl_c_generic_address_space` feature instead of by OpenCL
version.

Guard the private, global, and local overloads using the internal
`__opencl_c_named_address_space_builtins` feature.

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




More information about the All-commits mailing list