Skip to content

Commit

Permalink
[clang] Convert several OpenMP tests to opaque pointers
Browse files Browse the repository at this point in the history
Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D150608
  • Loading branch information
s-barannikov committed May 16, 2023
1 parent 3c30f22 commit d522c2f
Show file tree
Hide file tree
Showing 20 changed files with 3,607 additions and 3,792 deletions.
282 changes: 139 additions & 143 deletions clang/test/OpenMP/master_taskloop_codegen.cpp

Large diffs are not rendered by default.

465 changes: 226 additions & 239 deletions clang/test/OpenMP/master_taskloop_firstprivate_codegen.cpp

Large diffs are not rendered by default.

501 changes: 242 additions & 259 deletions clang/test/OpenMP/master_taskloop_lastprivate_codegen.cpp

Large diffs are not rendered by default.

375 changes: 185 additions & 190 deletions clang/test/OpenMP/master_taskloop_private_codegen.cpp

Large diffs are not rendered by default.

282 changes: 139 additions & 143 deletions clang/test/OpenMP/master_taskloop_simd_codegen.cpp

Large diffs are not rendered by default.

465 changes: 226 additions & 239 deletions clang/test/OpenMP/master_taskloop_simd_firstprivate_codegen.cpp

Large diffs are not rendered by default.

495 changes: 239 additions & 256 deletions clang/test/OpenMP/master_taskloop_simd_lastprivate_codegen.cpp

Large diffs are not rendered by default.

375 changes: 185 additions & 190 deletions clang/test/OpenMP/master_taskloop_simd_private_codegen.cpp

Large diffs are not rendered by default.

214 changes: 101 additions & 113 deletions clang/test/OpenMP/task_codegen.c

Large diffs are not rendered by default.

392 changes: 190 additions & 202 deletions clang/test/OpenMP/task_firstprivate_codegen.cpp

Large diffs are not rendered by default.

25 changes: 12 additions & 13 deletions clang/test/OpenMP/task_in_task_firstprivate_codegen.cpp
@@ -1,10 +1,10 @@
// RUN: %clang_cc1 -no-opaque-pointers -verify -triple x86_64-apple-darwin10 -fopenmp -x c++ -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -no-opaque-pointers -fopenmp -x c++ -triple x86_64-apple-darwin10 -emit-pch -o %t %s
// RUN: %clang_cc1 -no-opaque-pointers -fopenmp -x c++ -triple x86_64-apple-darwin10 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp -x c++ -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -fopenmp -x c++ -triple x86_64-apple-darwin10 -emit-pch -o %t %s
// RUN: %clang_cc1 -fopenmp -x c++ -triple x86_64-apple-darwin10 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s

// RUN: %clang_cc1 -no-opaque-pointers -verify -triple x86_64-apple-darwin10 -fopenmp-simd -x c++ -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// RUN: %clang_cc1 -no-opaque-pointers -fopenmp-simd -x c++ -triple x86_64-apple-darwin10 -emit-pch -o %t %s
// RUN: %clang_cc1 -no-opaque-pointers -fopenmp-simd -x c++ -triple x86_64-apple-darwin10 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp-simd -x c++ -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// RUN: %clang_cc1 -fopenmp-simd -x c++ -triple x86_64-apple-darwin10 -emit-pch -o %t %s
// RUN: %clang_cc1 -fopenmp-simd -x c++ -triple x86_64-apple-darwin10 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
// expected-no-diagnostics
#ifndef HEADER
Expand All @@ -14,13 +14,12 @@
int main() {
double var = 0;
// Check that var is firstprivatized in the outermost task.
// CHECK: [[BASE:%.+]] = call i8* @__kmpc_omp_task_alloc(%struct.ident_t* @{{.+}}, i32 {{.+}}, i32 1, i64 48, i64 1, i32 (i32, i8*)* bitcast (i32 (i32, [[TASK_TY:%.+]]*)* @{{.+}} to i32 (i32, i8*)*))
// CHECK: [[TD:%.+]] = bitcast i8* [[BASE]] to [[TASK_TY]]*
// CHECK: [[PRIVS:%.+]] = getelementptr inbounds [[TASK_TY]], [[TASK_TY]]* [[TD]], i32 0, i32 1
// CHECK: [[VAR_FP:%.+]] = getelementptr inbounds %{{.+}}, %{{.+}}* [[PRIVS]], i32 0, i32 0
// CHECK: [[VAR_VAL:%.+]] = load double, double* %{{.+}},
// CHECK: store double [[VAR_VAL]], double* [[VAR_FP]],
// CHECK: call i32 @__kmpc_omp_task(%struct.ident_t* @{{.+}}, i32 %{{.+}}, i8* [[BASE]])
// CHECK: [[BASE:%.+]] = call ptr @__kmpc_omp_task_alloc(ptr @{{.+}}, i32 {{.+}}, i32 1, i64 48, i64 1, ptr @{{.+}})
// CHECK: [[PRIVS:%.+]] = getelementptr inbounds %{{.+}}, ptr [[BASE]], i32 0, i32 1
// CHECK: [[VAR_FP:%.+]] = getelementptr inbounds %{{.+}}, ptr [[PRIVS]], i32 0, i32 0
// CHECK: [[VAR_VAL:%.+]] = load double, ptr %{{.+}},
// CHECK: store double [[VAR_VAL]], ptr [[VAR_FP]],
// CHECK: call i32 @__kmpc_omp_task(ptr @{{.+}}, i32 %{{.+}}, ptr [[BASE]])
#pragma omp task
#pragma omp task
var += 1;
Expand Down
327 changes: 161 additions & 166 deletions clang/test/OpenMP/task_private_codegen.cpp

Large diffs are not rendered by default.

270 changes: 133 additions & 137 deletions clang/test/OpenMP/taskloop_codegen.cpp

Large diffs are not rendered by default.

461 changes: 224 additions & 237 deletions clang/test/OpenMP/taskloop_firstprivate_codegen.cpp

Large diffs are not rendered by default.

501 changes: 242 additions & 259 deletions clang/test/OpenMP/taskloop_lastprivate_codegen.cpp

Large diffs are not rendered by default.

371 changes: 183 additions & 188 deletions clang/test/OpenMP/taskloop_private_codegen.cpp

Large diffs are not rendered by default.

266 changes: 131 additions & 135 deletions clang/test/OpenMP/taskloop_simd_codegen.cpp

Large diffs are not rendered by default.

461 changes: 224 additions & 237 deletions clang/test/OpenMP/taskloop_simd_firstprivate_codegen.cpp

Large diffs are not rendered by default.

496 changes: 240 additions & 256 deletions clang/test/OpenMP/taskloop_simd_lastprivate_codegen.cpp

Large diffs are not rendered by default.

375 changes: 185 additions & 190 deletions clang/test/OpenMP/taskloop_simd_private_codegen.cpp

Large diffs are not rendered by default.

0 comments on commit d522c2f

Please sign in to comment.