[PATCH] D18276: [OpenMP] Allow reduction on pointer dereference

Jonas Hahnfeld via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 18 13:04:17 PDT 2016


Hahnfeld created this revision.
Hahnfeld added reviewers: ABataev, hfinkel, carlo.bertolli, sfantao.
Hahnfeld added a subscriber: cfe-commits.

Pointer dereference is equal to access of first array element which is already allowed for the `reduction` clause.

While at it also add test for CodeGen of reduction on array element which seemed to be missing.

http://reviews.llvm.org/D18276

Files:
  lib/CodeGen/CGStmtOpenMP.cpp
  lib/Sema/SemaOpenMP.cpp
  test/OpenMP/for_reduction_codegen.cpp
  test/OpenMP/for_reduction_messages.cpp
  test/OpenMP/parallel_ast_print.cpp
  test/OpenMP/target_parallel_ast_print.cpp
  test/OpenMP/target_parallel_for_ast_print.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18276.51062.patch
Type: text/x-patch
Size: 17701 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160318/30c8f976/attachment-0001.bin>


More information about the cfe-commits mailing list