[OPENMP] Allow runtime insert its own code inside OpenMP regions.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 28 Mar 2016 09:53:43 +0000 (09:53 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 28 Mar 2016 09:53:43 +0000 (09:53 +0000)
commitb8c425c4f7655978768871102e57db0af7eb467e
tree672171886e44c2d7cdae71f65862e97540e8e9db
parentd5eb774eb6546388d9e96d7b112d9ea3d794854e
[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: 264569
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