llvm-project
17 строк · 812.0 Байт
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// RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL2.0 -foffload-uniform-block -o - %s 2>&1 | FileCheck %s -check-prefixes CHECK,CHECK-UNIFORM
5
6kernel void ker() {};
7// CHECK: define{{.*}}@ker() #0
8
9void foo() {};
10// CHECK: define{{.*}}@foo() #1
11
12// CHECK-LABEL: attributes #0
13// CHECK-UNIFORM: "uniform-work-group-size"="true"
14// CHECK-NONUNIFORM: "uniform-work-group-size"="false"
15
16// CHECK-LABEL: attributes #1
17// CHECK-NOT: uniform-work-group-size
18