mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 03:06:07 +00:00

Files compiled with C++ for OpenCL mode can now have a distinct file extension - clcpp, then clang driver picks the compilation mode automatically (-x clcpp) without the use of -cl-std=clc++. Differential Revision: https://reviews.llvm.org/D96771
8 lines
262 B
Plaintext
8 lines
262 B
Plaintext
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -emit-llvm -O0 -o - | FileCheck %s
|
|
|
|
void bar(__generic volatile unsigned int* ptr)
|
|
{
|
|
//CHECK: addrspacecast i32 addrspace(4)* %{{.+}} to i32 addrspace(1)*
|
|
auto gptr = (__global volatile unsigned int*)ptr;
|
|
}
|