[all-commits] [llvm/llvm-project] 366ead: [flang][OpenMP] Reland Fix copyprivate semantic ch...

Leandro Lupori via All-commits all-commits at lists.llvm.org
Wed Jul 31 10:39:27 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 366eade911b54878c9cc1835d2544fb4ba907ef5
      https://github.com/llvm/llvm-project/commit/366eade911b54878c9cc1835d2544fb4ba907ef5
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2024-07-31 (Wed, 31 Jul 2024)

  Changed paths:
    M flang/include/flang/Semantics/tools.h
    M flang/lib/Semantics/resolve-directives.cpp
    A flang/test/Lower/OpenMP/associate.f90
    M flang/test/Lower/OpenMP/default-clause-implied-do-fix.f90
    A flang/test/Semantics/OpenMP/copyprivate04.f90
    M flang/test/Semantics/OpenMP/do05-positivecase.f90
    M flang/test/Semantics/OpenMP/do20.f90
    M flang/test/Semantics/OpenMP/implicit-dsa.f90
    A flang/test/Semantics/OpenMP/parallel-shared05.f90
    M flang/test/Semantics/OpenMP/reduction08.f90
    M flang/test/Semantics/OpenMP/reduction09.f90
    M flang/test/Semantics/OpenMP/symbol01.f90
    M flang/test/Semantics/OpenMP/symbol02.f90
    M flang/test/Semantics/OpenMP/symbol03.f90
    M flang/test/Semantics/OpenMP/symbol05.f90
    M flang/test/Semantics/OpenMP/symbol07.f90
    M flang/test/Semantics/OpenMP/symbol08.f90
    M flang/test/Semantics/OpenMP/symbol09.f90

  Log Message:
  -----------
  [flang][OpenMP] Reland Fix copyprivate semantic checks (#95799) (#101009)

There are some cases in which variables used in OpenMP constructs
are predetermined as private. The semantic checks for copyprivate
were not handling those cases.

Besides that, shared symbols were not being properly represented
in some cases. When there was no previously declared private
(implicit) symbol, no new association symbols, representing
shared ones, were being created.

These symbols must always be inserted in constructs that may
privatize the original symbol: parallel, teams and task
generating constructs.

Fixes #87214 and #86907



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list