This is an archive of the discontinued LLVM Phabricator instance.

[libomptarget][nfc] Remove data_sharing type aliasing
ClosedPublic

Authored by JonChesterfield on Dec 10 2020, 4:18 PM.

Details

Summary

[libomptarget][nfc] Remove data_sharing type aliasing

Libomptarget previous used kmpc_data_sharing_slot to access values of type
kmpc_data_sharing_{worker,master}_slot_static. This aliasing violation was
benign in practice. The master type has since been removed, so a single type
can be used instead.

This is particularly helpful for the transition to an openmp deviceRTL, as the
c++/openmp compiler for amdgcn currently rejects the flexible array member for
being an incomplete type. Serves the same purpose as abandoned D86324.

Diff Detail

Event Timeline

JonChesterfield requested review of this revision.Dec 10 2020, 4:18 PM
JonChesterfield created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 10 2020, 4:18 PM
jdoerfert accepted this revision.Dec 10 2020, 4:55 PM

LGTM. nice cleanup

This revision is now accepted and ready to land.Dec 10 2020, 4:55 PM
This revision was landed with ongoing or failed builds.Dec 10 2020, 6:13 PM
This revision was automatically updated to reflect the committed changes.