[PATCH] D108512: [flang][OpenMP] Add semantic check for ordered construct

Peixin Qiao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 21 09:53:22 PDT 2021


peixin created this revision.
peixin added reviewers: kiranchandramohan, clementval, richard.barton.arm, jdoerfert, sameeranjoshi, praveen, SouraVX, sscalpone, arnamoy10, bryanpkc, Chuanfeng.
peixin added a project: LLVM.
Herald added subscribers: guansong, yaxunl.
peixin requested review of this revision.
Herald added subscribers: llvm-commits, sstefan1.

This patch implements the following semantic checks:

  OpenMP Version 5.1 Ordered construct restriction: At most one threads
  clause can appear on an ordered construct; At most one simd clause can 
  appear on an ordered construct; At most one depend(source) clause can 
  appear on an ordered construct.

Also add one test case.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108512

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108512.367963.patch
Type: text/x-patch
Size: 4248 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210821/6fe319da/attachment.bin>


More information about the llvm-commits mailing list