HomePhabricator

[Flang][OpenMP] Add semantic checks for OpenMP Depend clause.

Authored by praveen on Nov 16 2020, 9:56 AM.

Description

[Flang][OpenMP] Add semantic checks for OpenMP Depend clause.

Add the semantic checks for the OpenMP 4.5 - 2.13.9 Depend clause.

  1. List items in depend clause should not be zero length array sections.
  2. A variable that is part of another variable like structure component should not be specified on a depend clause.

Test cases : omp-depend01.f90, omp-depend02.f90, omp-depend03.f90

Reviewed By: kiranchandramohan

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