Rename lang mode flag to -cl-std=clc++/-cl-std=CLC++ or -std=clc++/-std=CLC++. This aligns with OpenCL C conversion and removes ambiguity with OpenCL C++. Differential Revision: https://reviews.llvm.org/D65102 llvm-svn: 367008
8 lines
276 B
Common Lisp
8 lines
276 B
Common Lisp
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -cl-std=clc++ -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;
|
|
}
|