[all-commits] [llvm/llvm-project] 8fdd47: [flang][OpenMP] Add semantic checks for occurrence...
arnamoy10 via All-commits
all-commits at lists.llvm.org
Fri Jun 18 13:23:39 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8fdd475c85634c4a5e5cd83d7dc15ff56c458813
https://github.com/llvm/llvm-project/commit/8fdd475c85634c4a5e5cd83d7dc15ff56c458813
Author: Arnamoy Bhattacharyya <arnamoy.bhattacharyya at huawei.com>
Date: 2021-06-18 (Fri, 18 Jun 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-barrier.f90
Log Message:
-----------
[flang][OpenMP] Add semantic checks for occurrence of nested Barrier regions
This patch adds the following nesting check for `barrier` constructs:
```
A barrier region may not be closely nested inside a worksharing, loop, task, taskloop, critical, ordered, atomic, or master region.
```
Also adds a test case for the check,
Reviewed By: kiranchandramohan
Differential Revision: https://reviews.llvm.org/D99888
More information about the All-commits
mailing list