[flang-commits] [llvm] [flang] [flang][OpenMP] Add semantic check for target data (PR #71560)

via flang-commits flang-commits at lists.llvm.org
Tue Nov 7 10:17:48 PST 2023


shraiysh wrote:

As it turns out, this check has been removed in OpenMP 5.2 and OpenMP 6.0.
Upto OpenMP 4.0 - No check.
OpenMP 4.5 - At least one MAP clause must be present.
OpenMP 5.0, 5.1 - At lease one of MAP, USE_DEVICE_PTR or USE_DEVICE_ADDR must be present.
OpenMP 5.2, 6.0 - No Check.
This makes me feel like we should not add this check like this, but we should have a way to pass the OpenMP version information to the semantics checker. I can start working on this @kiranchandramohan , but where should this information reside? In the `SemanticsContext`?

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


More information about the flang-commits mailing list