[libomptarget][nfc] Remove data_sharing type aliasing
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Fri, 11 Dec 2020 02:13:22 +0000 (02:13 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Fri, 11 Dec 2020 02:13:34 +0000 (02:13 +0000)
commitce93de3bb284c944676c7b81890156d9d80b1db9
tree502903f4ce922d66fd945d7053708b192d00f3c5
parent494aacd72c6a85a6d586fa58a8481e13b68acf24
[libomptarget][nfc] Remove data_sharing type aliasing

[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.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D93075
openmp/libomptarget/deviceRTLs/common/omptarget.h
openmp/libomptarget/deviceRTLs/interface.h