[OPENMP] Codegen for 'private' clause in 'for' directive.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 22 Apr 2015 12:24:45 +0000 (12:24 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 22 Apr 2015 12:24:45 +0000 (12:24 +0000)
commit50a6458870bad4f1aa8938e2ffa9fa40f6e2d24f
tree872b71e05bcb037563da56379271348bf513f71b
parent5c3c43afc11399e2ce4b288d802640aec4a1df1f
[OPENMP] Codegen for 'private' clause in 'for' directive.

This patch generates helper variables which used as a private copies of the corresponding original variables inside an OpenMP 'for' directive. These generated variables are initialized by default (with the default constructor, if any). In OpenMP region references to original variables are replaced by the references to these private helper variables.
Differential Revision: http://reviews.llvm.org/D9106

llvm-svn: 235503
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/for_private_codegen.cpp [new file with mode: 0644]