[all-commits] [llvm/llvm-project] 503010: [flang][OpenMP]Support for subroutine call for DEC...

Mats Petersson via All-commits all-commits at lists.llvm.org
Mon Mar 3 05:50:12 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50301052e9d65e55c90c652f2551f00f906cee2b
      https://github.com/llvm/llvm-project/commit/50301052e9d65e55c90c652f2551f00f906cee2b
  Author: Mats Petersson <mats.petersson at arm.com>
  Date:   2025-03-03 (Mon, 03 Mar 2025)

  Changed paths:
    M flang/include/flang/Parser/dump-parse-tree.h
    M flang/include/flang/Parser/parse-tree.h
    M flang/lib/Parser/openmp-parsers.cpp
    M flang/lib/Parser/unparse.cpp
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Lower/OpenMP/Todo/omp-declare-reduction-initsub.f90
    M flang/test/Parser/OpenMP/declare-reduction-unparse.f90
    A flang/test/Semantics/OpenMP/declare-reduction-error.f90
    M flang/test/Semantics/OpenMP/declare-reduction.f90

  Log Message:
  -----------
  [flang][OpenMP]Support for subroutine call for DECLARE REDUCTION init (#127889)

The DECLARE REDUCTION allows the initialization part to be either an
expression or a call to a subroutine.

This modifies the parsing and semantic analysis to allow the use of the
subroutine, in addition to the simple expression that was already
supported.

New tests in parser and semantics sections check that the generated
structure is as expected.

DECLARE REDUCTION lowering is not yet implemented, so will end in a
TODO. A new test with an init subroutine is added, that checks that this
variant also ends with a "Not yet implemented" message.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list