[PATCH] D112103: [WIP] Sample code for containerizing offload images into one ELF.
Vyacheslav Zakharin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 19 16:01:03 PDT 2021
vzakhari created this revision.
vzakhari added reviewers: saiislam, jdoerfert.
Herald added a reviewer: alexander-shaposhnikov.
vzakhari requested review of this revision.
Herald added subscribers: cfe-commits, sstefan1.
Herald added a project: clang.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D112103
Files:
clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112103.380794.patch
Type: text/x-patch
Size: 6859 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211019/49ef6250/attachment.bin>
More information about the cfe-commits
mailing list