summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmtOpenMP.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2015-02-05 05:57:51 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2015-02-05 05:57:51 +0000
commit9f797f32e28e3c1f5524c42ff4ee6ff500a4c595 (patch)
tree73c395dc90862a63d668cf8014dc840c7804ca00 /clang/lib/CodeGen/CGStmtOpenMP.cpp
parentbc9f12e7bcb75fb6e7a2c46ffefa3fc810d7a0b2 (diff)
downloadbcm5719-llvm-9f797f32e28e3c1f5524c42ff4ee6ff500a4c595.tar.gz
bcm5719-llvm-9f797f32e28e3c1f5524c42ff4ee6ff500a4c595.zip
[OPENMP] Codegen for 'taskyield' directive
For 'taskyield' directive emit call to kmp_int32 __kmpc_omp_taskyield(ident_t *, kmp_int32 global_tid, int end_part); runtime function call with end_part arg set to 0 (it is ignored). Differential Revision: http://reviews.llvm.org/D7047 llvm-svn: 228272
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmtOpenMP.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp
index 29743282d36..2518e55d4b3 100644
--- a/clang/lib/CodeGen/CGStmtOpenMP.cpp
+++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp
@@ -750,8 +750,9 @@ void CodeGenFunction::EmitOMPTaskDirective(const OMPTaskDirective &) {
llvm_unreachable("CodeGen for 'omp task' is not supported yet.");
}
-void CodeGenFunction::EmitOMPTaskyieldDirective(const OMPTaskyieldDirective &) {
- llvm_unreachable("CodeGen for 'omp taskyield' is not supported yet.");
+void CodeGenFunction::EmitOMPTaskyieldDirective(
+ const OMPTaskyieldDirective &S) {
+ CGM.getOpenMPRuntime().EmitOMPTaskyieldCall(*this, S.getLocStart());
}
void CodeGenFunction::EmitOMPBarrierDirective(const OMPBarrierDirective &S) {
OpenPOWER on IntegriCloud