summaryrefslogtreecommitdiff
path: root/test/OpenMP
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
commit61396a3c038285ab7f13984f1fdf80a217faf646 (patch)
treee00a3bf81fccf0aeef15586b053e8496a9653bf3 /test/OpenMP
parentfd5a81688fb3b5d5d36bab852f05efd4a234b4f5 (diff)
[OPENMP] Improve handling of cancel directives in target-based
constructs, NFC. Improved handling of cancel|cancellation point directives inside target-based for directives. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP')
-rw-r--r--test/OpenMP/target_parallel_for_codegen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/OpenMP/target_parallel_for_codegen.cpp b/test/OpenMP/target_parallel_for_codegen.cpp
index 2b725fcbcd..55dd4d2a57 100644
--- a/test/OpenMP/target_parallel_for_codegen.cpp
+++ b/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: }