mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
[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
This commit is contained in:
1 parent
76bdb26595
commit
7372d445af
3 files changed
+33
-33
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user