llvm.org GIT mirror llvm / 6f603ac
[PM/AA] Wire BasicAA's new pass manager class up to the pass registry. This ensures that all of the various pieces are working. The next patch will wire up commandline-driven alias analysis chain building and allow BasicAA to work with the AAManager. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260838 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 4 years ago
4 changed file(s) with 13 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
184184 /// \brief Opaque, unique identifier for this analysis pass.
185185 static void *ID() { return (void *)&PassID; }
186186
187 /// \brief Provide access to a name for this pass for debugging purposes.
188 static StringRef name() { return "BasicAA"; }
189
187190 BasicAAResult run(Function &F, AnalysisManager *AM);
188
189 /// \brief Provide access to a name for this pass for debugging purposes.
190 static StringRef name() { return "BasicAliasAnalysis"; }
191191
192192 private:
193193 static char PassID;
1717 #include "llvm/Passes/PassBuilder.h"
1818 #include "llvm/Analysis/AliasAnalysis.h"
1919 #include "llvm/Analysis/AssumptionCache.h"
20 #include "llvm/Analysis/BasicAliasAnalysis.h"
2021 #include "llvm/Analysis/CGSCCPassManager.h"
2122 #include "llvm/Analysis/LazyCallGraph.h"
2223 #include "llvm/Analysis/LoopInfo.h"
5454 #endif
5555 FUNCTION_ANALYSIS("aa", AAManager())
5656 FUNCTION_ANALYSIS("assumptions", AssumptionAnalysis())
57 FUNCTION_ANALYSIS("basic-aa", BasicAA())
5758 FUNCTION_ANALYSIS("domtree", DominatorTreeAnalysis())
5859 FUNCTION_ANALYSIS("loops", LoopAnalysis())
5960 FUNCTION_ANALYSIS("no-op-function", NoOpFunctionAnalysis())
305305 ; CHECK-AA: Running analysis: AAManager
306306 ; CHECK-AA: Finished pass manager
307307
308 ; RUN: opt -disable-output -disable-verify -debug-pass-manager %s 2>&1 \
309 ; RUN: -passes='require' \
310 ; RUN: | FileCheck %s --check-prefix=CHECK-BASIC-AA
311 ; CHECK-BASIC-AA: Starting pass manager
312 ; CHECK-BASIC-AA: Running pass: RequireAnalysisPass
313 ; CHECK-BASIC-AA: Running analysis: BasicAA
314 ; CHECK-BASIC-AA: Finished pass manager
315
308316 define void @foo() {
309317 ret void
310318 }