diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-05-06 10:08:46 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-05-06 10:08:46 +0000 |
commit | 9959db5fa9d4972b6f5510344d502ff4932b0c0e (patch) | |
tree | f9022d5800c5e078854567445218a23710ff1cba /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | fdce7cea931fc6fcb995a1193b3ae7f78a913f0d (diff) | |
download | llvm-9959db5fa9d4972b6f5510344d502ff4932b0c0e.zip llvm-9959db5fa9d4972b6f5510344d502ff4932b0c0e.tar.gz llvm-9959db5fa9d4972b6f5510344d502ff4932b0c0e.tar.bz2 |
[OPENMP] Initial codegen for '#pragma omp parallel'
llvm-svn: 208077
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index e8f48af..f3ea8eb 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -15,6 +15,7 @@ #include "CGCUDARuntime.h" #include "CGCXXABI.h" #include "CGDebugInfo.h" +#include "CGOpenMPRuntime.h" #include "CodeGenModule.h" #include "CodeGenPGO.h" #include "TargetInfo.h" @@ -72,6 +73,10 @@ CodeGenFunction::~CodeGenFunction() { // something. if (FirstBlockInfo) destroyBlockInfos(FirstBlockInfo); + + if (getLangOpts().OpenMP) { + CGM.getOpenMPRuntime().FunctionFinished(*this); + } } |