[flang][openmp] Separate memory-order-clause parser creating OmpClause node
authorValentin Clement <clementval@gmail.com>
Sat, 21 Nov 2020 19:31:17 +0000 (14:31 -0500)
committerclementval <clementval@gmail.com>
Sat, 21 Nov 2020 19:31:33 +0000 (14:31 -0500)
commitaa179d80990921486ec3e4f97d53522a4bb6cfad
tree8e283bb926bbf0a5ccd0a04795c1b4beb5f5b2e0
parent913a99c47439740531e03cc7d08fc04448c0752c
[flang][openmp] Separate memory-order-clause parser creating OmpClause node

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.

Reviewed By: kiranchandramohan, sameeranjoshi

Differential Revision: https://reviews.llvm.org/D91839
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