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 4 5kernel void ker() {}; 6// CHECK: define{{.*}}@ker() #0 7 8void foo() {}; 9// CHECK: define{{.*}}@foo() #1 10 11// CHECK-LABEL: attributes #0 12// CHECK-UNIFORM: "uniform-work-group-size"="true" 13// CHECK-NONUNIFORM: "uniform-work-group-size"="false" 14 15// CHECK-LABEL: attributes #1 16// CHECK-NOT: uniform-work-group-size 17