[all-commits] [llvm/llvm-project] 268521: [flang][OpenMP] Add semantic check for threadpriva...

PeixinQiao via All-commits all-commits at lists.llvm.org
Tue Sep 14 09:26:11 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 268521218434bcd3b859e88a0c50369de9d96cf7
      https://github.com/llvm/llvm-project/commit/268521218434bcd3b859e88a0c50369de9d96cf7
  Author: PeixinQiao <qiaopeixin at huawei.com>
  Date:   2021-09-15 (Wed, 15 Sep 2021)

  Changed paths:
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    M flang/test/Semantics/omp-allocate03.f90
    M flang/test/Semantics/omp-allocate07.f90
    M flang/test/Semantics/omp-parallel-private01.f90
    M flang/test/Semantics/omp-parallel-private02.f90
    M flang/test/Semantics/omp-parallel-private03.f90
    M flang/test/Semantics/omp-parallel-private04.f90
    M flang/test/Semantics/omp-parallel-shared01.f90
    M flang/test/Semantics/omp-parallel-shared02.f90
    M flang/test/Semantics/omp-parallel-shared03.f90
    M flang/test/Semantics/omp-parallel-shared04.f90
    A flang/test/Semantics/omp-threadprivate01.f90

  Log Message:
  -----------
  [flang][OpenMP] Add semantic check for threadprivate directive

This patch implements the following check for THREADPRIVATE construct:
```
A variable that is part of another variable (as an array, structure
element or type parameter inquiry) cannot appear in a threadprivate
directive.
```

Reviewed By: kiranchandramohan

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




More information about the All-commits mailing list