[llvm-dev] Emit LLVM bitcode after ThinLTO

David Blaikie via llvm-dev llvm-dev at lists.llvm.org
Mon Jul 20 12:42:27 PDT 2020


I think there is a way, but I'm not entirely sure.

It's possible you've got the right thing & it's just that ThinLTO's
optimized away most of the file you're looking at?

On Sat, Jul 11, 2020 at 9:53 PM Stephan Z via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
> Hi,
>
> I wanted to get the linked result in LLVM bitcode format.
>
> With LTO, this can be done by -flto -Wl,-plugin-opt,emit-llvm. Instead of generating native executables, it outputs a file with bitcode format.
>
> Does this still work with -flto=thin? -flto=thin -Wl,-plugin-opt,emit-llvm outputs a bitcode file, but its file size is too small, and does not contain all contents.
>
> What is the correct way to emit LLVM bitcode after ThinLTO?
>
> Thank you, S
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the llvm-dev mailing list