[all-commits] [llvm/llvm-project] 42f511: [flang][OpenMP] Add semantic check for teams nesting

PeixinQiao via All-commits all-commits at lists.llvm.org
Fri Aug 13 07:41:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 42f51107016ca869dc8d408c827bf61c2efcbc99
      https://github.com/llvm/llvm-project/commit/42f51107016ca869dc8d408c827bf61c2efcbc99
  Author: Peixin Qiao <qiaopeixin at huawei.com>
  Date:   2021-08-13 (Fri, 13 Aug 2021)

  Changed paths:
    M flang/lib/Semantics/check-directive-structure.h
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    M flang/test/Semantics/omp-firstprivate01.f90
    M flang/test/Semantics/omp-nested-master.f90
    M flang/test/Semantics/omp-nested-simd.f90
    A flang/test/Semantics/omp-nested-teams.f90

  Log Message:
  -----------
  [flang][OpenMP] Add semantic check for teams nesting

This patch implements the following check for TEAMS construct:
```
OpenMP Version 5.0 Teams construct restriction: A teams region can
only be strictly nested within the implicit parallel region or a target
region. If a teams construct is nested within a target construct, that
target construct must contain no statements, declarations or directives
outside of the teams construct.
```

Also add one test case for the check.

Reviewed By: kiranchandramohan, clementval

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




More information about the All-commits mailing list