[all-commits] [llvm/llvm-project] 61051e: [LTO] Add a function `LTOCodeGenerator::getMergedM...

Shilei Tian via All-commits all-commits at lists.llvm.org
Mon Dec 13 13:19:21 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61051e42c2d5b30ad440b2b275397fc0aa478434
      https://github.com/llvm/llvm-project/commit/61051e42c2d5b30ad440b2b275397fc0aa478434
  Author: Shilei Tian <tianshilei1992 at gmail.com>
  Date:   2021-12-13 (Mon, 13 Dec 2021)

  Changed paths:
    M llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
    A llvm/test/tools/llvm-lto/dump.ll
    M llvm/tools/llvm-lto/llvm-lto.cpp

  Log Message:
  -----------
  [LTO] Add a function `LTOCodeGenerator::getMergedModule`

One of the uses of `LTOCodeGenerator` is to take it as a middle+back end. Sometimes
it is very helpful to access, especially get information from the optimized module.
If the information can be changed in optimization, it cannot be get before the
module is added to `LTOCodeGenerator`. This patch adds a function
`LTOCodeGenerator::getMergedModule` to access the `MergedModule`.

Reviewed By: steven_wu

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




More information about the All-commits mailing list