"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/OpenMP/target_teams_distribute_simd_private_codegen.cpp" between
cfe-8.0.1.src.tar.xz and cfe-9.0.0.src.tar.xz

About: Clang is an LLVM front end for the C, C++, and Objective-C languages. Clang aims to provide a better user experience through expressive diagnostics, a high level of conformance to language standards, fast compilation, and low memory use.

target_teams_distribute_simd_private_codegen.cpp  (cfe-8.0.1.src.tar.xz):target_teams_distribute_simd_private_codegen.cpp  (cfe-9.0.0.src.tar.xz)
skipping to change at line 87 skipping to change at line 87
// CHECK-DAG: [[SIVAR:@.+]] = internal global i{{[0-9]+}} 0, // CHECK-DAG: [[SIVAR:@.+]] = internal global i{{[0-9]+}} 0,
int main() { int main() {
static int sivar; static int sivar;
#ifdef LAMBDA #ifdef LAMBDA
// LAMBDA: [[G:@.+]] = global i{{[0-9]+}} 1212, // LAMBDA: [[G:@.+]] = global i{{[0-9]+}} 1212,
// LAMBDA-LABEL: @main // LAMBDA-LABEL: @main
// LAMBDA: call void [[OUTER_LAMBDA:@.+]]( // LAMBDA: call void [[OUTER_LAMBDA:@.+]](
[&]() { [&]() {
// LAMBDA: define{{.*}} internal{{.*}} void [[OUTER_LAMBDA]]( // LAMBDA: define{{.*}} internal{{.*}} void [[OUTER_LAMBDA]](
// LAMBDA: call i32 @__tgt_target_teams(i64 -1, i8* @{{[^,]+}}, i32 0, i8** null, i8** null, i{{64|32}}* null, i64* null, i32 0, i32 0) // LAMBDA: call i32 @__tgt_target_teams(i64 -1, i8* @{{[^,]+}}, i32 0, i8** null, i8** null, i{{64|32}}* null, i64* null, i32 0, i32 1)
// LAMBDA: call void @[[LOFFL1:.+]]() // LAMBDA: call void @[[LOFFL1:.+]]()
// LAMBDA: ret // LAMBDA: ret
#pragma omp target teams distribute simd private(g, g1, sivar) #pragma omp target teams distribute simd private(g, g1, sivar)
for (int i = 0; i < 2; ++i) { for (int i = 0; i < 2; ++i) {
// LAMBDA: define{{.*}} internal{{.*}} void @[[LOFFL1]]() // LAMBDA: define{{.*}} internal{{.*}} void @[[LOFFL1]]()
// LAMBDA: call void {{.+}} @__kmpc_fork_teams({{.+}}, i32 0, {{.+}} @[[LOUT L1:.+]] to {{.+}}) // LAMBDA: call void {{.+}} @__kmpc_fork_teams({{.+}}, i32 0, {{.+}} @[[LOUT L1:.+]] to {{.+}})
// LAMBDA: ret void // LAMBDA: ret void
// LAMBDA: define internal void @[[LOUTL1]]({{.+}}) // LAMBDA: define internal void @[[LOUTL1]]({{.+}})
// Skip global, bound tid and loop vars // Skip global, bound tid and loop vars
skipping to change at line 154 skipping to change at line 154
for (int i = 0; i < 2; ++i) { for (int i = 0; i < 2; ++i) {
vec[i] = t_var; vec[i] = t_var;
s_arr[i] = var; s_arr[i] = var;
sivar += i; sivar += i;
} }
return tmain<int>(); return tmain<int>();
#endif #endif
} }
// CHECK: define {{.*}}i{{[0-9]+}} @main() // CHECK: define {{.*}}i{{[0-9]+}} @main()
// CHECK: call i32 @__tgt_target_teams(i64 -1, i8* @{{[^,]+}}, i32 0, i8** null, i8** null, i{{64|32}}* null, i64* null, i32 0, i32 0) // CHECK: call i32 @__tgt_target_teams(i64 -1, i8* @{{[^,]+}}, i32 0, i8** null, i8** null, i{{64|32}}* null, i64* null, i32 0, i32 1)
// CHECK: call void @[[OFFL1:.+]]() // CHECK: call void @[[OFFL1:.+]]()
// CHECK: {{%.+}} = call{{.*}} i32 @[[TMAIN_INT:.+]]() // CHECK: {{%.+}} = call{{.*}} i32 @[[TMAIN_INT:.+]]()
// CHECK: ret // CHECK: ret
// CHECK: define{{.*}} void @[[OFFL1]]() // CHECK: define{{.*}} void @[[OFFL1]]()
// CHECK: call void {{.+}} @__kmpc_fork_teams({{.+}}, i32 0, {{.+}} @[[OUTL1:.+] ] to {{.+}}) // CHECK: call void {{.+}} @__kmpc_fork_teams({{.+}}, i32 0, {{.+}} @[[OUTL1:.+] ] to {{.+}})
// CHECK: ret void // CHECK: ret void
// CHECK: define internal void @[[OUTL1]]({{.+}}) // CHECK: define internal void @[[OUTL1]]({{.+}})
// Skip global, bound tid and loop vars // Skip global, bound tid and loop vars
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)