llvm-project
e7e55416 - [flang] Lower omp.workshare to other omp constructs (#101446)

Commit
319 days ago
[flang] Lower omp.workshare to other omp constructs (#101446) Add a new pass that lowers an `omp.workshare` with its binding `omp.workshare.loop_wrapper` loop nests into other OpenMP constructs that can be lowered to LLVM. More specifically, in order to preserve the sequential execution semantics of the code contained, it wraps portions that needs to be executed on a single thread in `omp.single` blocks, converts code that must be parallelized into `omp.wsloop` nests and inserts the appropriate synchronization.
Author
Parents
Loading