[llvm-branch-commits] [flang] [flang] Lower omp.workshare to other omp constructs (PR #101446)

Ivan R. Ivanov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 1 18:51:36 PDT 2024


ivanradanov wrote:

> Thank you for your work so far. This is a great start.
> 
> What is the plan for transforming do loops generated by lowering (e.g. that do not become hlfir.elemental operations and are not generated by hlfir bufferization)?

I am looking at [this](https://www.openmp.org/spec-html/5.0/openmpsu39.html) for the standard.

I intend to go through the various constructs that require to be separated into units of work and provide an alternative lowering for them so that they will get parallelized when we lower the workdistribute operation.

To accurately keep track of constructs that need to be parallelized for workdistribute I em debating adding a new loop_nest wrapper for that as discussed [here](https://github.com/llvm/llvm-project/pull/101445#issuecomment-2261837847)

https://github.com/llvm/llvm-project/pull/101446


More information about the llvm-branch-commits mailing list