]> granicus.if.org Git - clang/commit
[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)
commit863c5af37e6a76f385a1387043be76eb6fa44d34
treef1d5e4e858421ac6ac65daf2c441e67bdc934baa
parent98a7c958fd785686683c69439d9be7b99b07ceeb
[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@264569 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