[PATCH] D133070: [flang] Add check for constraints on `sync-stat-lists` and other constraints in `sync-images-stmt`, and event statements

Katherine Rasmussen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 16:39:30 PDT 2022


ktras created this revision.
ktras added reviewers: tskeith, kiranchandramohan, PeteSteinfeld, rouson, pmccormick.
ktras added projects: Flang, LLVM.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
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`. There are `sync-stat-lists`
in `critical-stmt`, `sync-all-stmt`, `sync-images-stmt`,
`sync-memory-stmt`, `sync-team-stmt`, `event-post-stmt`, `unlock-stmt`,
`change-team-stmt`, and `end-change-team-stmt`. Also add a check for
the constraint `C1174` in `sync-images-stmt`, for the type of the
`event-variable` in `event-post-stmt` and `event-wait-stmt`, and check
the constraints `C1177` and `C1178` in `event-wait-stmt`. Update
semantics tests for these stmts.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133070

Files:
  flang/include/flang/Evaluate/tools.h
  flang/lib/Evaluate/tools.cpp
  flang/lib/Semantics/check-coarray.cpp
  flang/lib/Semantics/check-coarray.h
  flang/test/Semantics/event01b.f90
  flang/test/Semantics/event02b.f90
  flang/test/Semantics/sync-stat-list.f90
  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: D133070.457131.patch
Type: text/x-patch
Size: 24749 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220831/9fd86750/attachment-0001.bin>


More information about the llvm-commits mailing list