[PATCH] D77731: [OPENMP]Fix capturing of global variables in OpenMP regions.

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 8 07:34:26 PDT 2020


ABataev created this revision.
ABataev added a reviewer: jdoerfert.
Herald added subscribers: guansong, yaxunl.
Herald added a project: clang.

The global variable should be captured in the region only if it was
privitized in the region or in any of the outer regions. Otherwise, it
should not be captured.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77731

Files:
  clang/lib/Sema/SemaOpenMP.cpp
  clang/test/OpenMP/parallel_codegen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77731.256016.patch
Type: text/x-patch
Size: 10219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200408/24c671c4/attachment-0001.bin>


More information about the cfe-commits mailing list