Skip to content

Commit acf7290

Browse files
committed
Add fam in other projects.
1 parent 4f00c83 commit acf7290

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

llvm/examples/Kaleidoscope/Chapter4/toy.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ static void InitializeModuleAndManagers() {
577577
ThePIC = std::make_unique<PassInstrumentationCallbacks>();
578578
TheSI = std::make_unique<StandardInstrumentations>(*TheContext,
579579
/*DebugLogging*/ true);
580-
TheSI->registerCallbacks(*ThePIC, TheMAM.get());
580+
TheSI->registerCallbacks(*ThePIC, TheMAM.get(), TheFAM.get());
581581

582582
// Add transform passes.
583583
// Do simple "peephole" optimizations and bit-twiddling optzns.

llvm/examples/Kaleidoscope/Chapter5/toy.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ static void InitializeModuleAndManagers() {
851851
ThePIC = std::make_unique<PassInstrumentationCallbacks>();
852852
TheSI = std::make_unique<StandardInstrumentations>(*TheContext,
853853
/*DebugLogging*/ true);
854-
TheSI->registerCallbacks(*ThePIC, TheMAM.get());
854+
TheSI->registerCallbacks(*ThePIC, TheMAM.get(), TheFAM.get());
855855

856856
// Add transform passes.
857857
// Do simple "peephole" optimizations and bit-twiddling optzns.

llvm/examples/Kaleidoscope/Chapter6/toy.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ static void InitializeModuleAndManagers() {
970970
ThePIC = std::make_unique<PassInstrumentationCallbacks>();
971971
TheSI = std::make_unique<StandardInstrumentations>(*TheContext,
972972
/*DebugLogging*/ true);
973-
TheSI->registerCallbacks(*ThePIC, TheMAM.get());
973+
TheSI->registerCallbacks(*ThePIC, TheMAM.get(), TheFAM.get());
974974

975975
// Add transform passes.
976976
// Do simple "peephole" optimizations and bit-twiddling optzns.

llvm/examples/Kaleidoscope/Chapter7/toy.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ static void InitializeModuleAndManagers() {
11391139
ThePIC = std::make_unique<PassInstrumentationCallbacks>();
11401140
TheSI = std::make_unique<StandardInstrumentations>(*TheContext,
11411141
/*DebugLogging*/ true);
1142-
TheSI->registerCallbacks(*ThePIC, TheMAM.get());
1142+
TheSI->registerCallbacks(*ThePIC, TheMAM.get(), TheFAM.get());
11431143

11441144
// Add transform passes.
11451145
// Promote allocas to registers.

0 commit comments

Comments
 (0)