| 1 |
// RUN: %clang_cc1 -finclude-default-header -triple spirv-unknown-vulkan-compute -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s |
| 2 |
|
| 3 |
// CHECK: define internal spir_func void @__cxx_global_var_init() |
| 4 |
// CHECK: [[entry_token:%.*]] = call token @llvm.experimental.convergence.entry() |
| 5 |
// CHECK: br label %[[loop_entry:.*]] |
| 6 |
|
| 7 |
// CHECK: [[loop_entry]]: |
| 8 |
// CHECK: [[loop_token:%.*]] = call token @llvm.experimental.convergence.loop() [ "convergencectrl"(token [[entry_token]]) ] |
| 9 |
// CHECK: call spir_func void {{.*}} [ "convergencectrl"(token [[loop_token]]) ] |
| 10 |
// CHECK: br i1 {{%.*}} label {{%.*}} label %[[loop_entry]] |
| 11 |
|
| 12 |
struct S { |
| 13 |
int i; |
| 14 |
S() { i = 10; } |
| 15 |
}; |
| 16 |
|
| 17 |
static S s[2]; |
| 18 |
|
| 19 |
[numthreads(4,1,1)] |
| 20 |
void main() { |
| 21 |
} |
| 22 |
|