[flang-commits] [PATCH] D136104: [flang] Add check for constraints on synchronization-stmts

Katherine Rasmussen via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Oct 17 12:53:09 PDT 2022


ktras created this revision.
ktras added reviewers: klausler, jeanPerier, tskeith, kiranchandramohan, PeteSteinfeld, rouson, pmccormick, sscalpone, hussainjk.
ktras added projects: Flang, LLVM.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
ktras requested review of this revision.

In the `CoarrayChecker`, add checks for the constraints `C1172` and
`C1173`, which constrain `sync-stat-list`. Add these checks to
`sync-all-stmt`, `sync-images-stmt`, `sync-memory-stmt`, and
`sync-team-stmt`. Also add a check for the constraint `C1174` in
`sync-images-stmt`. Update semantics tests for these stmts.

The `CheckCoindexedStatOrErrmsg` function is a separate function from the 
singular function that it is currently called from, because there are future changes planned
which will also need to call this function.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136104

Files:
  flang/lib/Semantics/check-coarray.cpp
  flang/lib/Semantics/check-coarray.h
  flang/test/Semantics/synchronization01b.f90
  flang/test/Semantics/synchronization02b.f90
  flang/test/Semantics/synchronization03b.f90
  flang/test/Semantics/synchronization04b.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136104.468294.patch
Type: text/x-patch
Size: 10167 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221017/a6b55b1c/attachment.bin>


More information about the flang-commits mailing list