summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-01-07 11:14:51 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-01-07 11:14:51 +0000
commit7372d445afa0af9a6982e863affbc3dba1468658 (patch)
treee1746fd53dfb892ac16b07b56791185174e84976 /tools
parent76bdb265959ef59d34c366c2b785154038d4c160 (diff)
[PM] Give slightly less horrible names to the utility pass templates for
requiring and invalidating specific analyses. Also make their printed names match their class names. Writing these out as prose really doesn't make sense to me any more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/opt/Passes.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/opt/Passes.cpp b/tools/opt/Passes.cpp
index bc17e1d35b5..69301256f89 100644
--- a/tools/opt/Passes.cpp
+++ b/tools/opt/Passes.cpp
@@ -142,11 +142,11 @@ static bool parseModulePassName(ModulePassManager &MPM, StringRef Name) {
}
#define MODULE_ANALYSIS(NAME, CREATE_PASS) \
if (Name == "require<" NAME ">") { \
- MPM.addPass(NoopAnalysisRequirementPass<decltype(CREATE_PASS)>()); \
+ MPM.addPass(RequireAnalysisPass<decltype(CREATE_PASS)>()); \
return true; \
} \
if (Name == "invalidate<" NAME ">") { \
- MPM.addPass(NoopAnalysisInvalidationPass<decltype(CREATE_PASS)>()); \
+ MPM.addPass(InvalidateAnalysisPass<decltype(CREATE_PASS)>()); \
return true; \
}
#include "PassRegistry.def"
@@ -162,11 +162,11 @@ static bool parseCGSCCPassName(CGSCCPassManager &CGPM, StringRef Name) {
}
#define CGSCC_ANALYSIS(NAME, CREATE_PASS) \
if (Name == "require<" NAME ">") { \
- CGPM.addPass(NoopAnalysisRequirementPass<decltype(CREATE_PASS)>()); \
+ CGPM.addPass(RequireAnalysisPass<decltype(CREATE_PASS)>()); \
return true; \
} \
if (Name == "invalidate<" NAME ">") { \
- CGPM.addPass(NoopAnalysisInvalidationPass<decltype(CREATE_PASS)>()); \
+ CGPM.addPass(InvalidateAnalysisPass<decltype(CREATE_PASS)>()); \
return true; \
}
#include "PassRegistry.def"
@@ -182,11 +182,11 @@ static bool parseFunctionPassName(FunctionPassManager &FPM, StringRef Name) {
}
#define FUNCTION_ANALYSIS(NAME, CREATE_PASS) \
if (Name == "require<" NAME ">") { \
- FPM.addPass(NoopAnalysisRequirementPass<decltype(CREATE_PASS)>()); \
+ FPM.addPass(RequireAnalysisPass<decltype(CREATE_PASS)>()); \
return true; \
} \
if (Name == "invalidate<" NAME ">") { \
- FPM.addPass(NoopAnalysisInvalidationPass<decltype(CREATE_PASS)>()); \
+ FPM.addPass(InvalidateAnalysisPass<decltype(CREATE_PASS)>()); \
return true; \
}
#include "PassRegistry.def"