Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/tools/opt/NewPMDriver.cpp
Show First 20 Lines • Show All 389 Lines • ▼ Show 20 Lines | bool llvm::runPassPipeline(StringRef Arg0, Module &M, TargetMachine *TM, | ||||
ModuleAnalysisManager MAM; | ModuleAnalysisManager MAM; | ||||
PassInstrumentationCallbacks PIC; | PassInstrumentationCallbacks PIC; | ||||
PrintPassOptions PrintPassOpts; | PrintPassOptions PrintPassOpts; | ||||
PrintPassOpts.Verbose = DebugPM == DebugLogging::Verbose; | PrintPassOpts.Verbose = DebugPM == DebugLogging::Verbose; | ||||
PrintPassOpts.SkipAnalyses = DebugPM == DebugLogging::Quiet; | PrintPassOpts.SkipAnalyses = DebugPM == DebugLogging::Quiet; | ||||
StandardInstrumentations SI(M.getContext(), DebugPM != DebugLogging::None, | StandardInstrumentations SI(M.getContext(), DebugPM != DebugLogging::None, | ||||
VerifyEachPass, PrintPassOpts); | VerifyEachPass, PrintPassOpts); | ||||
SI.registerCallbacks(PIC, &FAM); | SI.registerCallbacks(PIC, &MAM); | ||||
DebugifyEachInstrumentation Debugify; | DebugifyEachInstrumentation Debugify; | ||||
DebugifyStatsMap DIStatsMap; | DebugifyStatsMap DIStatsMap; | ||||
DebugInfoPerPass DebugInfoBeforePass; | DebugInfoPerPass DebugInfoBeforePass; | ||||
if (DebugifyEach) { | if (DebugifyEach) { | ||||
Debugify.setDIStatsMap(DIStatsMap); | Debugify.setDIStatsMap(DIStatsMap); | ||||
Debugify.setDebugifyMode(DebugifyMode::SyntheticDebugInfo); | Debugify.setDebugifyMode(DebugifyMode::SyntheticDebugInfo); | ||||
Debugify.registerCallbacks(PIC, FAM); | Debugify.registerCallbacks(PIC, FAM); | ||||
} else if (VerifyEachDebugInfoPreserve) { | } else if (VerifyEachDebugInfoPreserve) { | ||||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |