[flang-commits] [PATCH] D149626: [flang] Add `co_reduce` to the list of intrinsics and update test

Katherine Rasmussen via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon May 1 18:16:46 PDT 2023


ktras created this revision.
ktras added reviewers: klausler, jeanPerier, PeteSteinfeld, rouson, hussainjk, pmccormick, sscalpone.
ktras added projects: Flang, LLVM.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a project: All.
ktras requested review of this revision.

Add the collective subroutine, `co_reduce`, to the list of 
intrinsic subroutines. Move the check in `ApplySpecificChecks()`
for the intrinsic function, `reduce`, to a new function that can
perform the same checks on `co_reduce` as well. Add to the new
function, `CheckReduceAndCoReduce`, the additional checks that
only apply for the `operation` argument for `co_reduce`. Also
change the check for the `volatile` attribute on the `operation`
argument for `reduce` and `co_reduce` to a check for the `value`
attribute, since that is the attribute that is disallowed by the
standard. Update the `co_reduce` and `reduce` semantics tests.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149626

Files:
  flang/docs/Intrinsics.md
  flang/lib/Evaluate/intrinsics.cpp
  flang/test/Semantics/collectives05.f90
  flang/test/Semantics/reduce01.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149626.518612.patch
Type: text/x-patch
Size: 30439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230502/ceee45bc/attachment-0001.bin>


More information about the flang-commits mailing list