[flang-commits] [flang] [mlir] [flang][openacc][openmp] Support implicit casting on the atomic interface (PR #114390)

via flang-commits flang-commits at lists.llvm.org
Thu Oct 31 04:31:32 PDT 2024


khaki3 wrote:

Probably, instead of this PR, we should put temps around the capture so that

```
  real :: n
  integer :: x
  !$acc atomic capture
  n = x
  x = n * n
  !$acc end atomic
```

becomes

```
  real :: n
  integer :: x, n_tmp
  %0 = float(n_tmp)
  %1 = %0 * %0
  !$acc atomic capture
  n_tmp = x
  x = %0
  !$acc end atomic
  n = n_tmp
```

Closing this PR.

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


More information about the flang-commits mailing list