[flang-commits] [flang] [Flang][OpenMP] Add Semantics support for Nested OpenMPLoopConstructs (PR #145917)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Mon Jul 7 06:22:51 PDT 2025


kparzysz wrote:

```
subroutine fred(x_min, x_max, a)
implicit none

integer :: x_min, x_max
real(kind=8), dimension(x_min:x_max, 2) :: a
integer :: i, j

!$omp target teams distribute parallel do collapse(2) private(i)
do i = x_min, x_max
  a(i, 1) = a(i, 0)
enddo

end
```

Command:
```
flang -fc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -fopenmp -O3 h.f90
```

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


More information about the flang-commits mailing list