This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][libomptarget] Allow overriding function that gets ELF symbol info
ClosedPublic

Authored by kevinsala on Nov 23 2022, 1:35 PM.

Details

Summary

The OpenMP target's NextGen plugins retrieve symbol information in the ELF image
(i.e., address and size) through the ELF section and ELF symbol objects. However,
the images of CUDA programs compute the address differently from the images of
AMDGPU programs:

  • Address for CUDA symbols: image begin + section's offset + symbol's st_value
  • Address for AMDGPU symbols: image + begin + symbol's st_value

This patch prepares the PluginInterface for the new AMDGPU NextGen plugin.

Diff Detail

Event Timeline

kevinsala created this revision.Nov 23 2022, 1:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 23 2022, 1:35 PM
kevinsala requested review of this revision.Nov 23 2022, 1:35 PM
This revision is now accepted and ready to land.Nov 23 2022, 2:40 PM