[all-commits] [llvm/llvm-project] 61fc10: [ThinLTO] add post-thinlto-merge option to -lto-em...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Tue Sep 15 15:56:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 61fc10d6a520f267e11009ce8fce88d73615796b
      https://github.com/llvm/llvm-project/commit/61fc10d6a520f267e11009ce8fce88d73615796b
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2020-09-15 (Tue, 15 Sep 2020)

  Changed paths:
    M clang/lib/CodeGen/BackendUtil.cpp
    A clang/test/CodeGen/Inputs/start-lib1.ll
    A clang/test/CodeGen/Inputs/start-lib2.ll
    A clang/test/CodeGen/thinlto_embed_bitcode.ll
    M llvm/include/llvm/LTO/LTOBackend.h
    M llvm/lib/LTO/LTOBackend.cpp
    M llvm/test/LTO/X86/Inputs/start-lib1.ll
    M llvm/test/LTO/X86/embed-bitcode.ll

  Log Message:
  -----------
  [ThinLTO] add post-thinlto-merge option to -lto-embed-bitcode

This will embed bitcode after (Thin)LTO merge, but before optimizations.
In the case the thinlto backend is called from clang, the .llvmcmd
section is also produced. Doing so in the case where the caller is the
linker doesn't yet have a motivation, and would require plumbing through
command line args.

Differential Revision: https://reviews.llvm.org/D87636




More information about the All-commits mailing list