[all-commits] [llvm/llvm-project] 0fcf63: [flang][OpenACC] Add minus operator to reduction c...

Ron Green [NVIDIA] via All-commits all-commits at lists.llvm.org
Wed Jun 3 12:45:46 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0fcf63e179486c0a7e72d656c65d2c0a45754a11
      https://github.com/llvm/llvm-project/commit/0fcf63e179486c0a7e72d656c65d2c0a45754a11
  Author: Ron Green [NVIDIA] <rogreen at nvidia.com>
  Date:   2026-06-03 (Wed, 03 Jun 2026)

  Changed paths:
    M flang/docs/OpenACC-extensions.md
    M flang/include/flang/Parser/parse-tree.h
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/OpenACC.cpp
    M flang/lib/Parser/openacc-parsers.cpp
    M flang/lib/Parser/unparse.cpp
    M flang/lib/Semantics/check-acc-structure.cpp
    M flang/lib/Semantics/check-cuda.cpp
    M flang/lib/Semantics/check-do-forall.cpp
    M flang/test/Lower/OpenACC/acc-reduction.f90
    M flang/test/Semantics/OpenACC/acc-reduction-validity.f90
    M flang/test/Semantics/reduce.cuf
    M flang/test/Semantics/resolve124.f90

  Log Message:
  -----------
  [flang][OpenACC] Add minus operator to reduction clause (#200909)

Adds '-' as a recognized reduction operator alongside '+'. The new
ReductionOperator::Operator::Minus is parsed from the '-' token,
accepted on integer/real/complex reduction variables, and lowered the
same as Plus (mlir::acc::ReductionOperator::AccAdd in OpenACC, and
fir::ReduceOperationEnum::Add in DO CONCURRENT). The unparser emits it
as '-'.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply at anthropic.com>



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