[OpenMP] Add map clause to the LIT test on use_device_addr clause
authorAnimesh Kumar <animesh.kumar@amd.com>
Fri, 30 Sep 2022 17:14:42 +0000 (22:44 +0530)
committerAnimesh Kumar <animesh.kumar@amd.com>
Wed, 9 Nov 2022 06:53:39 +0000 (12:23 +0530)
commit0f8e7b43291ce5881cde6f3d34041c578390dda4
tree69b4a10e1a40b275a637a7f537b512d286ce1e88
parent4db687155bc12f31b5ed122ba1086c5f04838a24
[OpenMP] Add map clause to the LIT test on use_device_addr clause

As per the OpenMP Spec, "A list item in a use_device_addr clause
must have a corresponding list item in the device data environment"
. Therefore a `map` clause is added which will make sure that the
respective list items are mapped to the device data environment
before the `use_device_addr` clause is specified. The CHECK lines
are also modified based on this change.

Differential Revision: https://reviews.llvm.org/D134974
clang/test/OpenMP/target_data_use_device_addr_codegen.cpp