Debian Codegraph @

clang/test/CodeGenOpenCL/cl-uniform-wg-size.cl

raw
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
6 kernel void ker() {};
7 // CHECK: define{{.*}}@ker() #[[ATTR0:[0-9]+]]
8
9 // CHECK: define{{.*}}@__clang_ocl_kern_imp_ker() #[[ATTR1:[0-9]+]]
10
11 void 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-size