summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmtOpenMP.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2015-04-27 05:22:09 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2015-04-27 05:22:09 +0000
commit8b8e202a33cbb3f1c64d306436be7c9af624b253 (patch)
treec912b1e7251d4c5a23e548ddbbb4ec22b8b76de6 /clang/lib/CodeGen/CGStmtOpenMP.cpp
parenta89adf22db0db5aaa561b20a5ae1845190c851a7 (diff)
downloadbcm5719-llvm-8b8e202a33cbb3f1c64d306436be7c9af624b253.tar.gz
bcm5719-llvm-8b8e202a33cbb3f1c64d306436be7c9af624b253.zip
[OPENMP] Codegen for 'taskwait' directive.
Emit the following code for 'taskwait' directive within tied task: call i32 @__kmpc_omp_taskwait(<loc>, i32 <thread_id>); Differential Revision: http://reviews.llvm.org/D9245 llvm-svn: 235836
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmtOpenMP.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp
index 22f6c3432a0..a31d6bcb484 100644
--- a/clang/lib/CodeGen/CGStmtOpenMP.cpp
+++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp
@@ -1435,8 +1435,8 @@ void CodeGenFunction::EmitOMPBarrierDirective(const OMPBarrierDirective &S) {
CGM.getOpenMPRuntime().emitBarrierCall(*this, S.getLocStart(), OMPD_barrier);
}
-void CodeGenFunction::EmitOMPTaskwaitDirective(const OMPTaskwaitDirective &) {
- llvm_unreachable("CodeGen for 'omp taskwait' is not supported yet.");
+void CodeGenFunction::EmitOMPTaskwaitDirective(const OMPTaskwaitDirective &S) {
+ CGM.getOpenMPRuntime().emitTaskwaitCall(*this, S.getLocStart());
}
void CodeGenFunction::EmitOMPFlushDirective(const OMPFlushDirective &S) {
OpenPOWER on IntegriCloud