[OPENMP] Improved code for generating debug info + generation of all OpenMP regions...
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 10 Mar 2015 04:22:11 +0000 (04:22 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 10 Mar 2015 04:22:11 +0000 (04:22 +0000)
commit7ab2cc178fd68568146d21e320733885bde3687c
treeef5f0588ad173b79579d479241e3a4889e928e9d
parent760bf9520ad1ec7a487ea1244c5c97ea235e4532
[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: 231752
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