[all-commits] [llvm/llvm-project] f2622a: [flang][OpenMP] Add semantic check to allow only l...

arnamoy10 via All-commits all-commits at lists.llvm.org
Fri Jun 4 14:31:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f2622a150adea31290daee0d04bf385d387fbc04
      https://github.com/llvm/llvm-project/commit/f2622a150adea31290daee0d04bf385d387fbc04
  Author: Arnamoy Bhattacharyya <arnamoy.bhattacharyya at huawei.com>
  Date:   2021-06-04 (Fri, 04 Jun 2021)

  Changed paths:
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    A flang/test/Semantics/omp-linear-iter.f90

  Log Message:
  -----------
  [flang][OpenMP] Add semantic check to allow only loop iteration variables in a `linear` clause within `distribute` construct.

Implement the following semantic check:

"A list item may not appear in a linear clause, unless it is the loop iteration variable."

Reviewed By: kiranchandramohan

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




More information about the All-commits mailing list