20 lines · plain
1// RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL1.2 -o - %s 2>&1 | FileCheck %s -check-prefixes CHECK,CHECK-UNIFORM2// RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL2.0 -o - %s 2>&1 | FileCheck %s -check-prefixes CHECK,CHECK-NONUNIFORM3// 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-UNIFORM4// RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL2.0 -foffload-uniform-block -o - %s 2>&1 | FileCheck %s -check-prefixes CHECK,CHECK-UNIFORM5 6kernel void ker() {};7// CHECK: define{{.*}}@ker() #[[ATTR0:[0-9]+]]8 9// CHECK: define{{.*}}@__clang_ocl_kern_imp_ker() #[[ATTR1:[0-9]+]]10 11void foo() {};12// CHECK: define{{.*}}@foo() #[[ATTR1:[0-9]+]]13 14// CHECK: attributes #[[ATTR0]]15// CHECK-UNIFORM: "uniform-work-group-size"="true"16// CHECK-NONUNIFORM: "uniform-work-group-size"="false"17 18// CHECK: attributes #[[ATTR1]]19// CHECK-NOT: uniform-work-group-size20