[PATCH] D152461: [LTO] Add a config option to make the final output bitcode
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 8 10:59:22 PDT 2023
jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, MaskRay, fhahn, tra, yaxunl, JonChesterfield, tianshilei1992.
Herald added subscribers: ormris, StephenFan, steven_wu, hiraditya, inglorion.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.
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 <https://reviews.llvm.org/D152442>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152461
Files:
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
llvm/include/llvm/LTO/Config.h
llvm/lib/LTO/LTOBackend.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152461.529680.patch
Type: text/x-patch
Size: 6575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230608/ec7d4118/attachment.bin>
More information about the cfe-commits
mailing list