[PATCH] D94613: [NFC] Rename ThinLTOPhase to PhaseInAllLTO and move it from PassBuilder.h to Pass.h
Wei Mi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 13 09:59:32 PST 2021
wmi created this revision.
wmi added reviewers: davidxl, wenlei, hoy.
Herald added subscribers: hiraditya, inglorion.
wmi requested review of this revision.
Herald added a project: LLVM.
In some compiler passes like SampleProfileLoaderPass, we want to know which LTO/ThinLTO phase the pass is in. Currently the phase is represented in enum class PassBuilder::ThinLTOPhase, so it is only available in PassBuilder and it also cannot represent phase in full LTO. The patch extends it to include LTO phases and move it from PassBuilder.h to Pass.h, then it is much easier for PassBuilder to communiate with each pass about current LTO phase.
Repository:
rL LLVM
https://reviews.llvm.org/D94613
Files:
llvm/include/llvm/Pass.h
llvm/include/llvm/Passes/PassBuilder.h
llvm/include/llvm/Transforms/IPO/SampleProfile.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/IPO/SampleProfile.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94613.316437.patch
Type: text/x-patch
Size: 17603 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210113/50d8b0e8/attachment.bin>
More information about the llvm-commits
mailing list