Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGenOpenCL / cl-uniform-wg-size.cl
blobd139621ede4e7e4ccef5320c878c9df3b17c41f1
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
6 kernel void ker() {};
7 // CHECK: define{{.*}}@ker() #0
9 void foo() {};
10 // CHECK: define{{.*}}@foo() #1
12 // CHECK-LABEL: attributes #0
13 // CHECK-UNIFORM: "uniform-work-group-size"="true"
14 // CHECK-NONUNIFORM: "uniform-work-group-size"="false"
16 // CHECK-LABEL: attributes #1
17 // CHECK-NOT: uniform-work-group-size