This is an archive of the discontinued LLVM Phabricator instance.

[ClangPackager] Add an option to extract inputs to an archive
ClosedPublic

Authored by jhuber6 on Jun 22 2023, 9:23 AM.

Details

Summary

Currently we simply overwrite the output file if we get muliple matches
in the fatbinary. This patch introduces the --archive option which
allows us to combine all of the files into a static archive instead.
This is usefuly for creating a device specific static archive library
from a fatbinary.

Diff Detail

Event Timeline

jhuber6 created this revision.Jun 22 2023, 9:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 9:23 AM
jhuber6 requested review of this revision.Jun 22 2023, 9:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 9:23 AM
JonChesterfield accepted this revision.Jun 23 2023, 1:02 PM

LGTM. As a meta level comment, we have far too many of these binary munging sorts of tools.

This revision is now accepted and ready to land.Jun 23 2023, 1:02 PM

LGTM. As a meta level comment, we have far too many of these binary munging sorts of tools.

Definitely agree. This is supposed to be a direct repalcement for clang-offload-bundler, but that is still in use by HIP and I don't know if it's something we could remove in a reasonable amount of time.