[all-commits] [llvm/llvm-project] 7a9179: [Flang][OpenMP] Add semantic checks for OpenMP Pri...

praveen-g-ctt via All-commits all-commits at lists.llvm.org
Mon Nov 30 08:53:51 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a91794d5b261bc87991d5acce9fa503e9a4f269
      https://github.com/llvm/llvm-project/commit/7a91794d5b261bc87991d5acce9fa503e9a4f269
  Author: Praveen G <praveen at compilertree.com>
  Date:   2020-11-30 (Mon, 30 Nov 2020)

  Changed paths:
    M flang/include/flang/Semantics/symbol.h
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    M flang/lib/Semantics/resolve-directives.cpp
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Semantics/omp-private01.f90
    A flang/test/Semantics/omp-private02.f90

  Log Message:
  -----------
  [Flang][OpenMP] Add semantic checks for OpenMP Private clause.

Add the semantic checks for the OpenMP 4.5 - 2.15.3.3 Private clause.

1. Pointers with the INTENT(IN) attribute may not appear in a private clause.
2. Variables that appear in namelist statements may not appear in a private clause.
   A flag 'InNamelist' is added to the Symbol::Flag to identify the symbols
   in Namelist statemnts.

Test cases : omp-private01.f90, omp-private02.f90

Reviewed By: kiranchandramohan

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




More information about the All-commits mailing list