[PATCH] [OPENMP] Codegen for 'private' clause in 'for' directive.

Alexey Bataev a.bataev at hotmail.com
Mon Apr 20 04:40:45 PDT 2015


Hi rjmccall, hfinkel, fraggamuffin, ejstotzer,

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.

http://reviews.llvm.org/D9106

Files:
  lib/CodeGen/CGStmtOpenMP.cpp
  lib/Sema/SemaOpenMP.cpp
  test/OpenMP/for_private_codegen.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9106.24013.patch
Type: text/x-patch
Size: 11617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150420/b5a1da92/attachment.bin>


More information about the cfe-commits mailing list