llvm-project/openmp/libomptarget/plugins
Manoel Roemmer 542d9c2154 [libomptarget] Load images in order of registration
This makes sure that images are loaded in the order in which they are registered with libomptarget.

If a target can load multiple images and these images depend on each other (for example if one image contains the programs target regions and one image contains library code), then the order in which images are loaded can be important for symbol resolution (for example, in the VE plugin).
In this case: because the same code exist in the host binaries, the order in which the host linker loads them (which is also the order in which images are registered with libomptarget) is the order in which the images have to be loaded onto the device.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D95530
2021-02-24 18:15:41 +01:00
..
aarch64 Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
amdgpu [OPENMP][AMDGCN] Improvements to print_kernel_trace (bit mask) 2021-02-19 06:47:22 -05:00
common [OpenMP] Fixed the link error that cannot find static data member 2021-01-12 16:48:28 -05:00
cuda [OpenMP][NFC] Eliminate sign comparison warning via explicit casts 2021-02-16 15:37:41 -06:00
generic-elf-64bit/src [OpenMP][NFC] Clang format the libomptarget plugins 2021-02-16 15:37:46 -06:00
ppc64 Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
ppc64le Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
remote [libomptarget][NFC] Link plugins with threads support library due to std::call_once usage. 2021-01-27 19:26:18 -08:00
ve [libomptarget] Load images in order of registration 2021-02-24 18:15:41 +01:00
x86_64 Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
CMakeLists.txt [libomptarget][NFC] Link plugins with threads support library due to std::call_once usage. 2021-01-27 19:26:18 -08:00
exports [libomptarget] Load images in order of registration 2021-02-24 18:15:41 +01:00