[all-commits] [llvm/llvm-project] cc9260: [OpenCL] Supports optional generic address space s...

Justas Janickas via All-commits all-commits at lists.llvm.org
Mon Sep 6 02:21:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc9260a0fb7c42ac8a8bb87eac1e11900c25ed20
      https://github.com/llvm/llvm-project/commit/cc9260a0fb7c42ac8a8bb87eac1e11900c25ed20
  Author: Justas Janickas <Justas.Janickas at arm.com>
  Date:   2021-09-06 (Mon, 06 Sep 2021)

  Changed paths:
    M clang/lib/Basic/TargetInfo.cpp
    M clang/test/SemaOpenCL/address-spaces-conversions-cl2.0.cl
    M clang/test/SemaOpenCL/address-spaces.cl

  Log Message:
  -----------
  [OpenCL] Supports optional generic address space semantics in C++ for OpenCL 2021

Adds support for a feature macro `__opencl_c_generic_adress_space`
in C++ for OpenCL 2021 enabling a respective optional core feature
from OpenCL 3.0. Testing is only performed in SemaOpenCL because
generic address space functionality is yet to be implemented in
C++ for OpenCL 2021.

This change aims to achieve compatibility between C++ for OpenCL
2021 and OpenCL 3.0.

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




More information about the All-commits mailing list