[PATCH] D99888: [flang][OpenMP] Add semantic checks for occurrence of nested Barrier regions

Arnamoy B via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 5 09:38:45 PDT 2021


arnamoy10 created this revision.
arnamoy10 added reviewers: kiranchandramohan, clementval, bryanpkc, SouraVX, AMDChirag, kiranktp.
arnamoy10 added a project: Flang.
Herald added subscribers: jdoerfert, jfb, guansong, yaxunl.
Herald added a reviewer: sscalpone.
arnamoy10 requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.

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,


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99888

Files:
  flang/lib/Semantics/check-omp-structure.cpp
  flang/lib/Semantics/check-omp-structure.h
  flang/test/Semantics/omp-nested-barrier.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99888.335280.patch
Type: text/x-patch
Size: 6328 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210405/2e5d61f3/attachment.bin>


More information about the llvm-commits mailing list