HomePhabricator

[flang][OpenMP] Enhance parser support for flush construct to OpenMP 5.0

Authored by kiranktp on Jul 7 2020, 1:56 AM.

Description

[flang][OpenMP] Enhance parser support for flush construct to OpenMP 5.0

Summary:
This patch enhances parser support for flush construct to OpenMP 5.0 by including memory-order-clause.

2.18.8 flush Construct

!$omp flush [memory-order-clause] [(list)]
        where memory-order-clause is
        acq_rel
        release
        acquire

The patch includes code changes and testcase modifications.

Reviewed By: klausler, kiranchandramohan

Differential Revision: https://reviews.llvm.org/D82177