diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-07-06 05:50:32 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-07-06 05:50:32 +0000 |
commit | 7d5d33ea33ab673150852f0f7ece99bee7feae3d (patch) | |
tree | 3e694b2ceb55d8fa248bc609847fd3fbd06715b9 /clang/lib/CodeGen/CGStmtOpenMP.cpp | |
parent | fc805cad14831d6f281a671e14c5730da25ad7eb (diff) | |
download | bcm5719-llvm-7d5d33ea33ab673150852f0f7ece99bee7feae3d.tar.gz bcm5719-llvm-7d5d33ea33ab673150852f0f7ece99bee7feae3d.zip |
[OPENMP 4.0] Codegen for 'omp cancel' directive.
Add the next codegen for 'omp cancel' directive:
if (__kmpc_cancel()) {
__kmpc_cancel_barrier();
<exit construct>;
}
llvm-svn: 241429
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmtOpenMP.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp index b021c127531..a1f093a8d86 100644 --- a/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp @@ -2108,7 +2108,8 @@ void CodeGenFunction::EmitOMPCancellationPointDirective( } void CodeGenFunction::EmitOMPCancelDirective(const OMPCancelDirective &S) { - llvm_unreachable("CodeGen for 'omp cancel' is not supported yet."); + CGM.getOpenMPRuntime().emitCancelCall(*this, S.getLocStart(), + S.getCancelRegion()); } CodeGenFunction::JumpDest |