Unverified Commit be9f8ffd authored by David Truby's avatar David Truby Committed by GitHub
Browse files

[mlir][flang][openmp] Rework wsloop reduction operations (#80019)



This patch reworks the way that wsloop reduction operations function to
better match the expected semantics from the OpenMP specification,
following the rework of parallel reductions.

The new semantics create a private reduction variable as a block
argument which should be used normally for all operations on that
variable in the region; this private variable is then combined with the
others into the shared variable. This way no special omp.reduction
operations are needed inside the region. These block arguments follow
the loop control block arguments.

---------

Co-authored-by: default avatarKiran Chandramohan <kiran.chandramohan@arm.com>
parent a69ecb24
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment