[all-commits] [llvm/llvm-project] 1f734b: [flang][OpenMP] Handle private/firstprivate clause...

NimishMishra via All-commits all-commits at lists.llvm.org
Sun Sep 4 07:50:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f734b0d1731bf15fe2501ec04f65658ad4a87a6
      https://github.com/llvm/llvm-project/commit/1f734b0d1731bf15fe2501ec04f65658ad4a87a6
  Author: Nimish Mishra <neelam.nimish at gmail.com>
  Date:   2022-09-05 (Mon, 05 Sep 2022)

  Changed paths:
    M flang/lib/Lower/OpenMP.cpp
    M flang/test/Lower/OpenMP/sections.f90

  Log Message:
  -----------
  [flang][OpenMP] Handle private/firstprivate clauses on sections construct

This patch adds private/firstprivate support for sections construct. For
a source like the following:

```
!$omp sections private(x) firstprivate(y)
    !$omp section
        <block of code>
    !$omp section
        <block of code>
!$omp end sections
```
...privatization proceeds to privatize `x` and `y` accordingly
inside each of the generated `omp.section` operations.

Reviewed By: peixin

Differential Revision: https://reviews.llvm.org/D131463




More information about the All-commits mailing list