This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Add map clause to the LIT test on use_device_addr clause
ClosedPublic

Authored by animeshk-amd on Sep 30 2022, 10:20 AM.

Details

Summary

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.

Diff Detail

Event Timeline

animeshk-amd created this revision.Sep 30 2022, 10:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 30 2022, 10:20 AM
animeshk-amd requested review of this revision.Sep 30 2022, 10:20 AM
Herald added a project: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Oct 21 2022, 12:33 PM

The main branch dropped the use of flag -no-opaque-pointers in
this test which generated a different IR than before. This revision
gets rid of the conflicts with the main branch caused by above.