[all-commits] [llvm/llvm-project] 65e80d: [Flang][OpenMP] Improve support for `if` clause on...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Fri Aug 4 02:43:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 65e80d6dfde052dc433077a03755120f42b5a626
      https://github.com/llvm/llvm-project/commit/65e80d6dfde052dc433077a03755120f42b5a626
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M flang/include/flang/Parser/parse-tree.h
    M flang/lib/Lower/OpenMP.cpp
    M flang/lib/Parser/openmp-parsers.cpp
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    A flang/test/Parser/OpenMP/if-clause-unparse.f90
    A flang/test/Parser/OpenMP/if-clause.f90
    A flang/test/Semantics/OpenMP/if-clause.f90
    M llvm/include/llvm/Frontend/OpenMP/OMP.td

  Log Message:
  -----------
  [Flang][OpenMP] Improve support for `if` clause on combined constructs

This patch adds support for matching multiple OpenMP `if` clauses to their
specified directive in a combined construct. It also enables this clause to be
attached by name to `simd` and `teams` directives, in addition to the others
that were already supported.

This patch on its own cannot yet be tested because there is currently no
lowering to MLIR support for any combined construct containing two or more
OpenMP directives that can have an `if` clause attached.

Depends on D155981.

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




More information about the All-commits mailing list