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
273 B
Plaintext
8 lines
273 B
Plaintext
//RUN: %clang_cc1 %s -triple spir -emit-llvm -O0 -o - | FileCheck %s
|
|
|
|
//CHECK-LABEL: define{{.*}} spir_func void @_Z3barPU3AS1i
|
|
void bar(global int *gl) {
|
|
//CHECK: addrspacecast i32 addrspace(1)* %{{[0-9]+}} to i32 addrspace(4)*
|
|
int *gen = addrspace_cast<int *>(gl);
|
|
}
|