[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)
commit14fa1c6b603b3ce54b23f8a287e0f3a4801f3063
tree4325d9cd4c85682aa90be86cabe774dbf5cca84c
parentbb7ce3b8500ee0c40bd3619058f3d1f980a8b291
[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.

llvm-svn: 264700
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/test/OpenMP/critical_codegen.cpp
clang/test/OpenMP/parallel_copyin_codegen.cpp
clang/test/OpenMP/single_codegen.cpp
clang/test/OpenMP/taskgroup_codegen.cpp