Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/LTO/LTOBackend.cpp
Show First 20 Lines • Show All 254 Lines • ▼ Show 20 Lines | static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM, | ||||
LoopAnalysisManager LAM; | LoopAnalysisManager LAM; | ||||
FunctionAnalysisManager FAM; | FunctionAnalysisManager FAM; | ||||
CGSCCAnalysisManager CGAM; | CGSCCAnalysisManager CGAM; | ||||
ModuleAnalysisManager MAM; | ModuleAnalysisManager MAM; | ||||
PassInstrumentationCallbacks PIC; | PassInstrumentationCallbacks PIC; | ||||
StandardInstrumentations SI(Mod.getContext(), Conf.DebugPassManager); | StandardInstrumentations SI(Mod.getContext(), Conf.DebugPassManager); | ||||
SI.registerCallbacks(PIC, &FAM); | SI.registerCallbacks(PIC, &MAM); | ||||
PassBuilder PB(TM, Conf.PTO, PGOOpt, &PIC); | PassBuilder PB(TM, Conf.PTO, PGOOpt, &PIC); | ||||
RegisterPassPlugins(Conf.PassPlugins, PB); | RegisterPassPlugins(Conf.PassPlugins, PB); | ||||
std::unique_ptr<TargetLibraryInfoImpl> TLII( | std::unique_ptr<TargetLibraryInfoImpl> TLII( | ||||
new TargetLibraryInfoImpl(Triple(TM->getTargetTriple()))); | new TargetLibraryInfoImpl(Triple(TM->getTargetTriple()))); | ||||
if (Conf.Freestanding) | if (Conf.Freestanding) | ||||
TLII->disableAllFunctions(); | TLII->disableAllFunctions(); | ||||
▲ Show 20 Lines • Show All 439 Lines • Show Last 20 Lines |