]> granicus.if.org Git - clang/commit
[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)
commit45360e9df6137cf8a6f0e8b1504552b4c357d7c3
tree9fc2ad8dc7855ddf7084298ba7880afd3afec83e
parent9ba4ce9ce267d8d1ecf77be72afec1b1d486fe67
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235503 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmtOpenMP.cpp
lib/Sema/SemaOpenMP.cpp
test/OpenMP/for_private_codegen.cpp [new file with mode: 0644]