@@ -578,7 +578,7 @@ class ModuleCallsiteContextGraph
578
578
public:
579
579
ModuleCallsiteContextGraph (
580
580
Module &M,
581
- function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter);
581
+ llvm:: function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter);
582
582
583
583
private:
584
584
friend CallsiteContextGraph<ModuleCallsiteContextGraph, Function,
@@ -606,7 +606,7 @@ class ModuleCallsiteContextGraph
606
606
unsigned CloneNo) const ;
607
607
608
608
const Module &Mod;
609
- function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter;
609
+ llvm:: function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter;
610
610
};
611
611
612
612
// / Represents a call in the summary index graph, which can either be an
@@ -641,7 +641,7 @@ class IndexCallsiteContextGraph
641
641
public:
642
642
IndexCallsiteContextGraph (
643
643
ModuleSummaryIndex &Index,
644
- function_ref<bool (GlobalValue::GUID, const GlobalValueSummary *)>
644
+ llvm:: function_ref<bool (GlobalValue::GUID, const GlobalValueSummary *)>
645
645
isPrevailing);
646
646
647
647
~IndexCallsiteContextGraph () {
@@ -687,7 +687,7 @@ class IndexCallsiteContextGraph
687
687
std::map<const FunctionSummary *, ValueInfo> FSToVIMap;
688
688
689
689
const ModuleSummaryIndex &Index;
690
- function_ref<bool (GlobalValue::GUID, const GlobalValueSummary *)>
690
+ llvm:: function_ref<bool (GlobalValue::GUID, const GlobalValueSummary *)>
691
691
isPrevailing;
692
692
693
693
// Saves/owns the callsite info structures synthesized for missing tail call
@@ -1524,7 +1524,8 @@ CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::getStackIdsWithContextNodes(
1524
1524
}
1525
1525
1526
1526
ModuleCallsiteContextGraph::ModuleCallsiteContextGraph (
1527
- Module &M, function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter)
1527
+ Module &M,
1528
+ llvm::function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter)
1528
1529
: Mod(M), OREGetter(OREGetter) {
1529
1530
for (auto &F : M) {
1530
1531
std::vector<CallInfo> CallsWithMetadata;
@@ -1583,7 +1584,7 @@ ModuleCallsiteContextGraph::ModuleCallsiteContextGraph(
1583
1584
1584
1585
IndexCallsiteContextGraph::IndexCallsiteContextGraph (
1585
1586
ModuleSummaryIndex &Index,
1586
- function_ref<bool (GlobalValue::GUID, const GlobalValueSummary *)>
1587
+ llvm:: function_ref<bool (GlobalValue::GUID, const GlobalValueSummary *)>
1587
1588
isPrevailing)
1588
1589
: Index(Index), isPrevailing(isPrevailing) {
1589
1590
for (auto &I : Index) {
@@ -3623,7 +3624,7 @@ bool CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::process() {
3623
3624
3624
3625
bool MemProfContextDisambiguation::processModule (
3625
3626
Module &M,
3626
- function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter) {
3627
+ llvm:: function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter) {
3627
3628
3628
3629
// If we have an import summary, then the cloning decisions were made during
3629
3630
// the thin link on the index. Apply them and return.
@@ -3690,7 +3691,7 @@ PreservedAnalyses MemProfContextDisambiguation::run(Module &M,
3690
3691
3691
3692
void MemProfContextDisambiguation::run (
3692
3693
ModuleSummaryIndex &Index,
3693
- function_ref<bool (GlobalValue::GUID, const GlobalValueSummary *)>
3694
+ llvm:: function_ref<bool (GlobalValue::GUID, const GlobalValueSummary *)>
3694
3695
isPrevailing) {
3695
3696
// TODO: If/when other types of memprof cloning are enabled beyond just for
3696
3697
// hot and cold, we will need to change this to individually control the
0 commit comments