Commit 7af70cce authored by George Rokos's avatar George Rokos
Browse files

[OpenMP][libomptarget] New map interface: remove translation code and ensure...

[OpenMP][libomptarget] New map interface: remove translation code and ensure proper alignment of struct members

This patch removes the translation code since this functionality is now implemented in the compiler.
target_data_begin and target_data_end are also patched to handle some special cases that used to be
handled by the obsolete translation function, namely ensure proper alignment of struct members when
we have partially mapped structs. Mapping a struct from a higher address (i.e. not from its beginning)
can result in distortion of the alignment for some of its member fields. Padding restores the original
(proper) alignment.

Differential revision: https://reviews.llvm.org/D44186



git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@337455 91177308-0d34-0410-b5e6-96231b3b80d8
parent 426d7564
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment