aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authoragozillon <Andrew.Gozillon@amd.com>2024-03-13 16:18:21 +0100
committerGitHub <noreply@github.com>2024-03-13 16:18:21 +0100
commit096ee4e16fd62cd578d20ec4e8ad4756f4e369ee (patch)
treecfdbec6c75b57447d3a08473a18e1d2fd3c98c52 /clang/lib/Basic/Module.cpp
parent59ff907fc14aa2d02e57b4af4140949d4f8caca1 (diff)
downloadllvm-096ee4e16fd62cd578d20ec4e8ad4756f4e369ee.zip
llvm-096ee4e16fd62cd578d20ec4e8ad4756f4e369ee.tar.gz
llvm-096ee4e16fd62cd578d20ec4e8ad4756f4e369ee.tar.bz2
[Flang][OpenMP] Implement "promotion" of use_device_ptr non-cptr arguments to use_device_addr (#82834)
This effectively implements some now deprecated OpenMP functionality that some applications (most notably at the moment GenASiS) unfortunately depend on (deprecated in specification version 5.2): "If a list item in a use_device_ptr clause is not of type C_PTR, the behavior is as if the list item appeared in a use_device_addr clause. Support for such list items in a use_device_ptr clause is deprecated." This PR downgrades the hard-error to a deprecated warning and "promotes" the above cases by simply moving the offending operands from the use_device_ptr value list to the back of the use_device_addr list (and moves the related symbols, locs and types that form the BlockArgs correspondingly) and then the generation of the target data construct proceeds as normal.
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions