[all-commits] [llvm/llvm-project] 75a5ea: [LTO] Add a function `LTOCodeGenerator::getMergedM...
Shilei Tian via All-commits
all-commits at lists.llvm.org
Mon Dec 20 17:02:03 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 75a5eaf7c6d60e95b11ea572b78fdb8788d15ddc
https://github.com/llvm/llvm-project/commit/75a5eaf7c6d60e95b11ea572b78fdb8788d15ddc
Author: Shilei Tian <i at tianshilei.me>
Date: 2021-12-20 (Mon, 20 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