File tree 5 files changed +5
-5
lines changed
llvm/examples/Kaleidoscope
5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -911,7 +911,7 @@ void CodeGenAction::runOptimizationPipeline(llvm::raw_pwrite_stream &os) {
911
911
std::optional<llvm::PGOOptions> pgoOpt;
912
912
llvm::StandardInstrumentations si (llvmModule->getContext (),
913
913
opts.DebugPassManager );
914
- si.registerCallbacks (pic, &mam);
914
+ si.registerCallbacks (pic, &mam, &fam );
915
915
if (ci.isTimingEnabled ())
916
916
si.getTimePasses ().setOutStream (ci.getTimingStreamLLVM ());
917
917
pto.LoopUnrolling = opts.UnrollLoops ;
Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ static void InitializeModuleAndManagers() {
577
577
ThePIC = std::make_unique<PassInstrumentationCallbacks>();
578
578
TheSI = std::make_unique<StandardInstrumentations>(*TheContext,
579
579
/* DebugLogging*/ true );
580
- TheSI->registerCallbacks (*ThePIC, TheMAM.get ());
580
+ TheSI->registerCallbacks (*ThePIC, TheMAM.get (), TheFAM. get () );
581
581
582
582
// Add transform passes.
583
583
// Do simple "peephole" optimizations and bit-twiddling optzns.
Original file line number Diff line number Diff line change @@ -851,7 +851,7 @@ static void InitializeModuleAndManagers() {
851
851
ThePIC = std::make_unique<PassInstrumentationCallbacks>();
852
852
TheSI = std::make_unique<StandardInstrumentations>(*TheContext,
853
853
/* DebugLogging*/ true );
854
- TheSI->registerCallbacks (*ThePIC, TheMAM.get ());
854
+ TheSI->registerCallbacks (*ThePIC, TheMAM.get (), TheFAM. get () );
855
855
856
856
// Add transform passes.
857
857
// Do simple "peephole" optimizations and bit-twiddling optzns.
Original file line number Diff line number Diff line change @@ -970,7 +970,7 @@ static void InitializeModuleAndManagers() {
970
970
ThePIC = std::make_unique<PassInstrumentationCallbacks>();
971
971
TheSI = std::make_unique<StandardInstrumentations>(*TheContext,
972
972
/* DebugLogging*/ true );
973
- TheSI->registerCallbacks (*ThePIC, TheMAM.get ());
973
+ TheSI->registerCallbacks (*ThePIC, TheMAM.get (), TheFAM. get () );
974
974
975
975
// Add transform passes.
976
976
// Do simple "peephole" optimizations and bit-twiddling optzns.
Original file line number Diff line number Diff line change @@ -1139,7 +1139,7 @@ static void InitializeModuleAndManagers() {
1139
1139
ThePIC = std::make_unique<PassInstrumentationCallbacks>();
1140
1140
TheSI = std::make_unique<StandardInstrumentations>(*TheContext,
1141
1141
/* DebugLogging*/ true );
1142
- TheSI->registerCallbacks (*ThePIC, TheMAM.get ());
1142
+ TheSI->registerCallbacks (*ThePIC, TheMAM.get (), TheFAM. get () );
1143
1143
1144
1144
// Add transform passes.
1145
1145
// Promote allocas to registers.
You can’t perform that action at this time.
0 commit comments