[PATCH] D91839: [flang][openmp] Separate memory-order-clause parser creating OmpClause node

Valentin Clement via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 19 19:47:38 PST 2020


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

This patch introduce the separate parser for the memory-order-clause from the general
OmpClauseList. This parser still creates OmpClause node and therefore can use all the feature
from TableGen and the OmpStructureChecker.
This is applied only for the Flush construct in this patch and it should be applied for 
atomic as well.

This is the approach we disscussed several time during the weekly call.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91839

Files:
  flang/include/flang/Parser/dump-parse-tree.h
  flang/include/flang/Parser/parse-tree.h
  flang/lib/Lower/OpenMP.cpp
  flang/lib/Parser/openmp-parsers.cpp
  flang/lib/Parser/unparse.cpp
  flang/lib/Semantics/check-omp-structure.cpp
  flang/lib/Semantics/check-omp-structure.h
  flang/test/Semantics/omp-clause-validity01.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91839.306586.patch
Type: text/x-patch
Size: 7682 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201120/fcfb1ed0/attachment.bin>


More information about the llvm-commits mailing list