[PATCH] D129507: [llvm-objcopy] Add option to dump embedded offloading images

Joseph Huber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 14 10:33:17 PDT 2022


jhuber6 planned changes to this revision.
jhuber6 added a comment.

In D129507#3652600 <https://reviews.llvm.org/D129507#3652600>, @MaskRay wrote:

> I think none of `llvm-objdump`, `llvm-readobj`, or `llvm-objcopy` is applicable. I don't know the offloading ecosystem well, but it seems that if a tool already does something like extracting an offloading section, it seems natural for it to support `--dump-offloading` if such a debugging functionality is needed.
> If `clang-offload-packager` seems misnomer, since the utility is still new, a rename can be considered. If its main code is in `clang/lib`, you can add the dump functionality in `llvm/lib/Object` (to sit beside code which parses/processes some binary formats) and let the tool call that code.

Fair enough, I'll just stash this with the `clang-offload-packager`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129507/new/

https://reviews.llvm.org/D129507



More information about the llvm-commits mailing list