[OPENMP] Initial codegen for 'parallel sections' directive.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 14 Apr 2015 03:29:22 +0000 (03:29 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 14 Apr 2015 03:29:22 +0000 (03:29 +0000)
commit68adb7da1abdca258ccfb87e929a42fd7e7af940
tree8d33a6d55ad69864f95330b8812950c179a8dea3
parent87afdeb8f56c4c71a8d121d87bda7955460e67b4
[OPENMP] Initial codegen for 'parallel sections' directive.

Emits code for outlined 'parallel' directive with the implicitly inlined 'sections' directive:

...
call __kmpc_fork_call(..., outlined_function, ...);
...

define internal void outlined_function(...) {
    <code for implicit sections directive>;
}
Differential Revision: http://reviews.llvm.org/D8997

llvm-svn: 234849
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/parallel_sections_codegen.cpp [new file with mode: 0644]