[all-commits] [llvm/llvm-project] b76657: [flang][OpenMP] Add semantic check for close nesti...

arnamoy10 via All-commits all-commits at lists.llvm.org
Thu May 13 11:59:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b766576d38d304c630de5430053d06dfc7784628
      https://github.com/llvm/llvm-project/commit/b766576d38d304c630de5430053d06dfc7784628
  Author: Arnamoy Bhattacharyya <arnamoy.bhattacharyya at huawei.com>
  Date:   2021-05-13 (Thu, 13 May 2021)

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

  Log Message:
  -----------
  [flang][OpenMP] Add semantic check for close nesting of `master` regions

This patch implements the following semantic check:
```
A master region may not be closely nested inside a work-sharing, loop, atomic, task, or taskloop region.
```

Adds a test case and also modifies a couple of existing test cases to include the check.

Reviewed By: kiranchandramohan

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




More information about the All-commits mailing list