[OPENMP] Improved code for generating debug info + generation of all OpenMP regions...
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 10 Mar 2015 05:15:26 +0000 (05:15 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 10 Mar 2015 05:15:26 +0000 (05:15 +0000)
commit36bf011e8348263c5b375a8def38bc6569ee6fb7
tree8c25cdd60a9ef729aace2833590d262396c8a4df
parent81ad639ed3cc4ddd957c28cf15c344796c560efd
[OPENMP] Improved code for generating debug info + generation of all OpenMP regions in termination scope
Patch adds proper generation of debug info for all OpenMP regions. Also, all OpenMP regions are generated in a termination scope, because standard does not allow to throw exceptions out of structured blocks, associated with the OpenMP regions
Differential Revision: http://reviews.llvm.org/D7935

llvm-svn: 231757
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGStmt.cpp
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/atomic_codegen.cpp [new file with mode: 0644]
clang/test/OpenMP/critical_codegen.cpp
clang/test/OpenMP/for_codegen.cpp
clang/test/OpenMP/master_codegen.cpp
clang/test/OpenMP/parallel_codegen.cpp
clang/test/OpenMP/simd_codegen.cpp
clang/test/OpenMP/single_codegen.cpp