[flang-commits] [flang] [flang][openacc] Use original input for base address with optional (PR #80931)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Wed Feb 7 08:56:52 PST 2024


https://github.com/vzakhari approved this pull request.

Thank you, Valentin!

It looks good to me, though, I think we will need to handle optional arguments differently in more complex cases.  If I am reading OpenACC 3.3 2.17.1 right, the following data clause does not have any effect:
```
type(t), optional :: x(:)
!$acc enter data copyin(x(10)%member(10)%member)
```

So it looks like we need to conditionalize the designator lowering with the isPresent check earlier.  It is not for this PR.

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


More information about the flang-commits mailing list