Skip to content

Commit

Permalink
Fix StandardInstrumentations.registerCallbacks call
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Jan 28, 2024
1 parent 695aece commit 66c13ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -810,13 +810,13 @@ void NewPM::run(Module &M) {
#endif
FunctionAnalysisManager FAM(createFAM(O, *TM.get()));
PassInstrumentationCallbacks PIC;
adjustPIC(PIC);
TimePasses.registerCallbacks(PIC);
SI.registerCallbacks(PIC, &FAM);
SI.getTimePasses().setOutStream(nulls()); //TODO: figure out a better way of doing this
LoopAnalysisManager LAM;
CGSCCAnalysisManager CGAM;
ModuleAnalysisManager MAM;
adjustPIC(PIC);
TimePasses.registerCallbacks(PIC);
SI.registerCallbacks(PIC, &MAM);
SI.getTimePasses().setOutStream(nulls()); //TODO: figure out a better way of doing this
PassBuilder PB(TM.get(), PipelineTuningOptions(), None, &PIC);
PB.registerLoopAnalyses(LAM);
PB.registerFunctionAnalyses(FAM);
Expand Down

0 comments on commit 66c13ac

Please sign in to comment.