This is an archive of the discontinued LLVM Phabricator instance.

[LTO] Add a config option to make the final output bitcode
Needs ReviewPublic

Authored by jhuber6 on Jun 8 2023, 10:59 AM.

Details

Summary

The LTO pass currently only offers assembly or object file outputs. We
can obtain the final LLVM output using the hooks, but is inconvenient
and disrupts the flow of the compilation. This patch proposes adding a
convenience function to perform this if the user requires it. We would
like this for the desire to retain the post-optimized LTO bitcode for
LLVM offloading compileations, such as JIT, builtin linking, or
performing a relocatable link on LLVM-IR.

Depends on D152442

Diff Detail

Event Timeline

jhuber6 created this revision.Jun 8 2023, 10:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2023, 10:59 AM
jhuber6 requested review of this revision.Jun 8 2023, 10:59 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 8 2023, 10:59 AM
jhuber6 updated this revision to Diff 529682.Jun 8 2023, 11:01 AM

Remove leftover debug