[all-commits] [llvm/llvm-project] 2e2645: [Flang][OpenMP] Add semantic checks for OpenMP Dep...

praveen-g-ctt via All-commits all-commits at lists.llvm.org
Mon Nov 16 10:17:03 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e26459fabcab31221c6144633f10883bc1d3926
      https://github.com/llvm/llvm-project/commit/2e26459fabcab31221c6144633f10883bc1d3926
  Author: Praveen G <praveen at compilertree.com>
  Date:   2020-11-16 (Mon, 16 Nov 2020)

  Changed paths:
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    A flang/test/Semantics/omp-depend01.f90
    A flang/test/Semantics/omp-depend02.f90
    A flang/test/Semantics/omp-depend03.f90

  Log Message:
  -----------
  [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




More information about the All-commits mailing list