aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Passes/PassBuilder.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2016-08-04 03:52:53 +0000
committerChandler Carruth <chandlerc@gmail.com>2016-08-04 03:52:53 +0000
commita053a88df51032be4d13c14a06be83eae949704c (patch)
treef024963f3bc7e514e3442afb0d75f8b222d4d5c4 /llvm/lib/Passes/PassBuilder.cpp
parentb33bfa198c8e655488c7f7a4f50f98f56ed6ce5a (diff)
downloadllvm-a053a88df51032be4d13c14a06be83eae949704c.zip
llvm-a053a88df51032be4d13c14a06be83eae949704c.tar.gz
llvm-a053a88df51032be4d13c14a06be83eae949704c.tar.bz2
[PM] Change the name of the repeating utility to something less
overloaded (and simpler). Sean rightly pointed out in code review that we've started using "wrapper pass" as a specific part of the old pass manager, and in fact it is more applicable there. Here, we really have a pass *template* to build a repeated pass, so call it that. llvm-svn: 277689
Diffstat (limited to 'llvm/lib/Passes/PassBuilder.cpp')
-rw-r--r--llvm/lib/Passes/PassBuilder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp
index f8165ed..e7d33a2 100644
--- a/llvm/lib/Passes/PassBuilder.cpp
+++ b/llvm/lib/Passes/PassBuilder.cpp
@@ -470,7 +470,7 @@ bool PassBuilder::parseModulePass(ModulePassManager &MPM,
if (!parseModulePassPipeline(NestedMPM, InnerPipeline, VerifyEachPass,
DebugLogging))
return false;
- MPM.addPass(createRepeatingPassWrapper(*Count, std::move(NestedMPM)));
+ MPM.addPass(createRepeatedPass(*Count, std::move(NestedMPM)));
return true;
}
// Normal passes can't have pipelines.
@@ -557,7 +557,7 @@ bool PassBuilder::parseCGSCCPass(CGSCCPassManager &CGPM,
if (!parseCGSCCPassPipeline(NestedCGPM, InnerPipeline, VerifyEachPass,
DebugLogging))
return false;
- CGPM.addPass(createRepeatingPassWrapper(*Count, std::move(NestedCGPM)));
+ CGPM.addPass(createRepeatedPass(*Count, std::move(NestedCGPM)));
return true;
}
// Normal passes can't have pipelines.
@@ -617,7 +617,7 @@ bool PassBuilder::parseFunctionPass(FunctionPassManager &FPM,
if (!parseFunctionPassPipeline(NestedFPM, InnerPipeline, VerifyEachPass,
DebugLogging))
return false;
- FPM.addPass(createRepeatingPassWrapper(*Count, std::move(NestedFPM)));
+ FPM.addPass(createRepeatedPass(*Count, std::move(NestedFPM)));
return true;
}
// Normal passes can't have pipelines.
@@ -667,7 +667,7 @@ bool PassBuilder::parseLoopPass(LoopPassManager &LPM, const PipelineElement &E,
if (!parseLoopPassPipeline(NestedLPM, InnerPipeline, VerifyEachPass,
DebugLogging))
return false;
- LPM.addPass(createRepeatingPassWrapper(*Count, std::move(NestedLPM)));
+ LPM.addPass(createRepeatedPass(*Count, std::move(NestedLPM)));
return true;
}
// Normal passes can't have pipelines.