llvm-project
7f72d71d - [OpenMP][OMPIRBuilder] Refactor reduction initialization logic into one util (#118447)

Commit
299 days ago
[OpenMP][OMPIRBuilder] Refactor reduction initialization logic into one util (#118447) This refactors the logic needed to emit init logic for reductions by moving some duplicated code into a shared util. The logic for doing is quite involved and is needed for any construct that has reductions. Moreover, when a construct has both private and reduction clauses, both sets of clauses need to cooperate with each other when emitting the logic needed for allocation and initialization. Therefore, this PR clearly sets the boundaries for the logic needed to initialize reductions.
Author
Parents
Loading