diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2016-02-26 11:44:45 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2016-02-26 11:44:45 +0000 |
commit | 3a6343555180817fe1f533a60e66b0e4db465e46 (patch) | |
tree | b5c40db2a6e046ae4d71a83a06a4f591233ba90f /llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp | |
parent | 6456376fe94dcf4df5f2b946c1806fe579f9e414 (diff) | |
download | bcm5719-llvm-3a6343555180817fe1f533a60e66b0e4db465e46.tar.gz bcm5719-llvm-3a6343555180817fe1f533a60e66b0e4db465e46.zip |
[PM] Introduce CRTP mixin base classes to help define passes and
analyses in the new pass manager.
These just handle really basic stuff: turning a type name into a string
statically that is nice to print in logs, and getting a static unique ID
for each analysis.
Sadly, the format of passes in anonymous namespaces makes using their
names in tests really annoying so I've customized the names of the no-op
passes to keep tests sane to read.
This is the first of a few simplifying refactorings for the new pass
manager that should reduce boilerplate and confusion.
llvm-svn: 262004
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp b/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp index 2e50c80c4e7..5d04d89f1d2 100644 --- a/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp +++ b/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp @@ -116,8 +116,6 @@ SCEVAAResult SCEVAA::run(Function &F, AnalysisManager<Function> *AM) { AM->getResult<ScalarEvolutionAnalysis>(F)); } -char SCEVAA::PassID; - char SCEVAAWrapperPass::ID = 0; INITIALIZE_PASS_BEGIN(SCEVAAWrapperPass, "scev-aa", "ScalarEvolution-based Alias Analysis", false, true) |