[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 13:56:26 PST 2021
wmi added inline comments.
================
Comment at: llvm/include/llvm/Pass.h:75
+/// This enumerates the LLVM LTO or ThinLTO optimization phases.
+enum class PhaseInAllLTO {
+ /// No LTO/ThinLTO behavior needed.
----------------
davidxl wrote:
> wenlei wrote:
> > nit: name it `LTOPhase`? There's similar change in https://reviews.llvm.org/D69732.
> >
> > And perhaps FullLTOPreLink and FullLTOPostLink too though I noticed there's PrepareForLTO and PrepareForThinLTO.. Not sure if LTO is always used to refer FullLTO..
> LTO traditionally refers to FullLTO, so using LTO can be confusing.
>
> I suggest make it even clearer:
>
> ThinOrFullLTOPhase
Thanks, I use ThinOrFullLTOPhase for the enum class name and change LTOPreLink/LTOPostLink to FullLTOPreLink/FullLTOPostLink.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94613/new/
https://reviews.llvm.org/D94613
More information about the llvm-commits
mailing list