HomePhabricator

[OpenCL] Added addrspace_cast operator in C++ mode.

Authored by Anastasia on May 18 2020, 3:02 AM.

Description

[OpenCL] Added addrspace_cast operator in C++ mode.

This operator is intended for casting between
pointers to objects in different address spaces
and follows similar logic as const_cast in C++.

Tags: #clang

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

Details