summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/target_parallel_for_codegen.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-12-13 21:04:20 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-12-13 21:04:20 +0000
commita9f77c6df755841ba1ae2b5c56d0ca4d53907433 (patch)
treea2ddd405d3ed16ad60a0ef50011a716d2adf69a1 /clang/test/OpenMP/target_parallel_for_codegen.cpp
parentd989af98b3029646344577df173afe29dcee6044 (diff)
downloadbcm5719-llvm-a9f77c6df755841ba1ae2b5c56d0ca4d53907433.tar.gz
bcm5719-llvm-a9f77c6df755841ba1ae2b5c56d0ca4d53907433.zip
[OPENMP] Add codegen for `nowait` clause in target directives.
Added basic codegen for `nowait` clauses in target-based directives. llvm-svn: 320613
Diffstat (limited to 'clang/test/OpenMP/target_parallel_for_codegen.cpp')
-rw-r--r--clang/test/OpenMP/target_parallel_for_codegen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/OpenMP/target_parallel_for_codegen.cpp b/clang/test/OpenMP/target_parallel_for_codegen.cpp
index 55dd4d2a578..58ac10bf9b2 100644
--- a/clang/test/OpenMP/target_parallel_for_codegen.cpp
+++ b/clang/test/OpenMP/target_parallel_for_codegen.cpp
@@ -116,7 +116,7 @@ int foo(int n) {
a += 1;
}
- // CHECK-DAG: [[RET:%.+]] = call i32 @__tgt_target_teams(i64 -1, i8* @{{[^,]+}}, i32 3, i8** [[BP:%[^,]+]], i8** [[P:%[^,]+]], i[[SZ]]* getelementptr inbounds ([3 x i[[SZ]]], [3 x i[[SZ]]]* [[SIZET2]], i32 0, i32 0), i64* getelementptr inbounds ([3 x i64], [3 x i64]* [[MAPT2]], i32 0, i32 0), i32 1, i32 0)
+ // CHECK-DAG: [[RET:%.+]] = call i32 @__tgt_target_teams_nowait(i64 -1, i8* @{{[^,]+}}, i32 3, i8** [[BP:%[^,]+]], i8** [[P:%[^,]+]], i[[SZ]]* getelementptr inbounds ([3 x i[[SZ]]], [3 x i[[SZ]]]* [[SIZET2]], i32 0, i32 0), i64* getelementptr inbounds ([3 x i64], [3 x i64]* [[MAPT2]], i32 0, i32 0), i32 1, i32 0)
// CHECK-DAG: [[BP]] = getelementptr inbounds [3 x i8*], [3 x i8*]* [[BPR:%[^,]+]], i32 0, i32 0
// CHECK-DAG: [[P]] = getelementptr inbounds [3 x i8*], [3 x i8*]* [[PR:%[^,]+]], i32 0, i32 0
// CHECK-DAG: [[BPADDR0:%.+]] = getelementptr inbounds [3 x i8*], [3 x i8*]* [[BPR]], i32 0, i32 0
@@ -145,7 +145,7 @@ int foo(int n) {
// CHECK-NEXT: br label %[[END]]
// CHECK: [[END]]
int lin = 12;
- #pragma omp target parallel for if(target: 1) linear(lin, a : get_val())
+ #pragma omp target parallel for if(target: 1) linear(lin, a : get_val()) nowait
for (unsigned long long it = 2000; it >= 600; it-=400) {
aa += 1;
}
OpenPOWER on IntegriCloud