[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / CodeGenOpenCL / cl-uniform-wg-size.cl
blob76ace5dca21ed583f4911b8c9f116a00ecfdd5b0
1 // RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL1.2 -o - %s 2>&1 | FileCheck %s -check-prefixes CHECK,CHECK-UNIFORM
2 // RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL2.0 -o - %s 2>&1 | FileCheck %s -check-prefixes CHECK,CHECK-NONUNIFORM
3 // RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL2.0 -cl-uniform-work-group-size -o - %s 2>&1 | FileCheck %s -check-prefixes CHECK,CHECK-UNIFORM
5 kernel void ker() {};
6 // CHECK: define{{.*}}@ker() #0
8 void foo() {};
9 // CHECK: define{{.*}}@foo() #1
11 // CHECK-LABEL: attributes #0
12 // CHECK-UNIFORM: "uniform-work-group-size"="true"
13 // CHECK-NONUNIFORM: "uniform-work-group-size"="false"
15 // CHECK-LABEL: attributes #1
16 // CHECK-NOT: uniform-work-group-size