Skip to content

Commit 87bf82d

Browse files
authored
[mlir][OpenMP] Lower REDUCTION clause for SECTIONS construct (#97859)
This shares code with WsloopOp (the changes to Wsloop should be NFC). OpenMPIRBuilder basically implements SECTIONS as a wsloop over a case statement with each SECTION as a case for a particular loopiv value. Unfortunately it proved very difficult to share code between these and ParallelOp. ParallelOp does quite a few things differently (doing more work inside of the bodygen callback and laying out blocks differently). Aligning reduction implementations for wsloop and parallel will probably involve functional changes to both, so I won't attempt that in this commit.
1 parent c0a5bf8 commit 87bf82d

File tree

4 files changed

+665
-213
lines changed

4 files changed

+665
-213
lines changed

0 commit comments

Comments
 (0)