This is an archive of the discontinued LLVM Phabricator instance.

[WIP][RFC] Sample code for containerizing offload images into one ELF.
AbandonedPublic

Authored by vzakhari on Oct 19 2021, 4:01 PM.

Details

Summary

This code cannot currently work within llorg, because it is mostly based on https://github.com/intel/llvm state of clang-offload-wrapper. This patch is uploaded to facilitate discussion at OpenMP at LLVM weekly meeting.

The code shows how to containerize several offload images passed to clang-offload-wrapper into a single ELF file. It also re-implements the LLVMOMPOFFLOAD notes embedding that currently uses llvm-objcopy in llorg.

The implementation uses yaml::yaml2elf utility.

Diff Detail

Event Timeline

vzakhari created this revision.Oct 19 2021, 4:01 PM
vzakhari requested review of this revision.Oct 19 2021, 4:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 19 2021, 4:01 PM
vzakhari retitled this revision from [WIP] Sample code for containerizing offload images into one ELF. to [WIP][RFC] Sample code for containerizing offload images into one ELF..Oct 19 2021, 4:01 PM
vzakhari abandoned this revision.Jul 19 2022, 4:05 PM

Not working on the project any more.

Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2022, 4:05 PM