Issue 58191
Summary [Flang][OpenMP] Implement reduction for intrinsic functions
Labels openmp, flang:ir
Assignees
Reporter kiranchandramohan
    The OpenMP standard supports several intrinsic functions in reduction like `max`, `min`, `iand`, `ior`, `ieor`.

```
subroutine reduction_min(y)
  integer :: x, y(:)
  x = 0
  !$omp parallel
  !$omp do reduction(min:x)
  do i=1, 100
    x = min(x, y(i))
  end do
  !$omp end do
  !$omp end parallel
  print *, x
end subroutine
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to