[all-commits] [llvm/llvm-project] 56c3b2: [OPENMP]Fix capturing of global variables in OpenM...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Thu Apr 9 07:39:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 56c3b2b091bf94ed5c3d614f3d10e8e973a72d17
      https://github.com/llvm/llvm-project/commit/56c3b2b091bf94ed5c3d614f3d10e8e973a72d17
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2020-04-09 (Thu, 09 Apr 2020)

  Changed paths:
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/OpenMP/parallel_codegen.cpp

  Log Message:
  -----------
  [OPENMP]Fix capturing of global variables in OpenMP regions.

Summary:
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.

Reviewers: jdoerfert

Subscribers: yaxunl, guansong, cfe-commits, caomhin

Tags: #clang

Differential Revision: https://reviews.llvm.org/D77731




More information about the All-commits mailing list