]> granicus.if.org Git - clang/commit
[OPENMP] Allow runtime insert its own code inside OpenMP regions.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 29 Mar 2016 05:34:15 +0000 (05:34 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 29 Mar 2016 05:34:15 +0000 (05:34 +0000)
commit9bee4b3971afd6e7b0c15897edff31eca8488c36
tree6b7af41ee52c5d4f4c10f3a201d6a88d681f52cb
parentc2685f09703167912371d2663b35ca6afa3db24d
[OPENMP] Allow runtime insert its own code inside OpenMP regions.

Solution unifies interface of RegionCodeGenTy type to allow insert
runtime-specific code before/after main codegen action defined in
CGStmtOpenMP.cpp file. Runtime should not define its own RegionCodeGenTy
for general OpenMP directives, but must be allowed to insert its own
 (required) code to support target specific codegen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264700 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntime.h
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
lib/CodeGen/CGOpenMPRuntimeNVPTX.h
lib/CodeGen/CGStmtOpenMP.cpp
lib/CodeGen/CodeGenFunction.h
test/OpenMP/critical_codegen.cpp
test/OpenMP/parallel_copyin_codegen.cpp
test/OpenMP/single_codegen.cpp
test/OpenMP/taskgroup_codegen.cpp