summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-11-27 16:54:08 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-11-27 16:54:08 +0000
commit10a5431239a65f66b49e11157658784336a82ced (patch)
treefcac88c395ed1fcddd3a84d77c72059419afb52c /clang/test
parent647dd6a6028b54953e0b02a78bbdfc122154dabf (diff)
downloadbcm5719-llvm-10a5431239a65f66b49e11157658784336a82ced.tar.gz
bcm5719-llvm-10a5431239a65f66b49e11157658784336a82ced.zip
[OPENMP] Improve handling of cancel directives in target-based
constructs, NFC. Improved handling of cancel|cancellation point directives inside target-based for directives. llvm-svn: 319046
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/OpenMP/target_parallel_for_codegen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/OpenMP/target_parallel_for_codegen.cpp b/clang/test/OpenMP/target_parallel_for_codegen.cpp
index 2b725fcbcdd..55dd4d2a578 100644
--- a/clang/test/OpenMP/target_parallel_for_codegen.cpp
+++ b/clang/test/OpenMP/target_parallel_for_codegen.cpp
@@ -106,6 +106,7 @@ int foo(int n) {
#pragma omp target parallel for
for (int i = 3; i < 32; i += 5) {
#pragma omp cancel for
+#pragma omp cancellation point for
}
// CHECK: call void [[HVT1:@.+]](i[[SZ]] {{[^,]+}}, i{{32|64}}{{[*]*}} {{[^)]+}})
@@ -325,6 +326,7 @@ int foo(int n) {
//
// CHECK: define internal {{.*}}void [[OMP_OUTLINED]](i32* noalias %.global_tid., i32* noalias %.bound_tid.)
// CHECK: call i32 @__kmpc_cancel(%ident_t* @
+// CHECK: call i32 @__kmpc_cancellationpoint(%ident_t* @
// CHECK: ret void
// CHECK: }
OpenPOWER on IntegriCloud