forked from OSchip/llvm-project
[NewPM][BasicAA] Rename basicaa -> basic-aa, add alias
Summary: BasicAA under the new pass manager is called "basic-aa", which fits more with the other AA names which almost always contain a dash. Keep an alias from basicaa -> basic-aa. Will change all references of "basicaa" to "basic-aa", then remove the alias. Makes check-llvm failures under NPM go from 2307 to 1867. Reviewers: asbirlea, ychen Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82607
This commit is contained in:
parent
0e1997ed4e
commit
0c6bf90b56
|
@ -73,6 +73,11 @@ public:
|
|||
llvm_unreachable(nullptr);
|
||||
}
|
||||
addLiteralOption(P->getPassArgument().data(), P, P->getPassName().data());
|
||||
|
||||
// Temporary alias for basicaa -> basic-aa
|
||||
// TODO: remove once everything is migrated to basic-aa
|
||||
if (P->getPassArgument() == "basic-aa")
|
||||
addLiteralOption("basicaa", P, "deprecated alias for basic-aa");
|
||||
}
|
||||
void passEnumerate(const PassInfo *P) override { passRegistered(P); }
|
||||
|
||||
|
|
|
@ -2069,13 +2069,13 @@ char BasicAAWrapperPass::ID = 0;
|
|||
|
||||
void BasicAAWrapperPass::anchor() {}
|
||||
|
||||
INITIALIZE_PASS_BEGIN(BasicAAWrapperPass, "basicaa",
|
||||
INITIALIZE_PASS_BEGIN(BasicAAWrapperPass, "basic-aa",
|
||||
"Basic Alias Analysis (stateless AA impl)", true, true)
|
||||
INITIALIZE_PASS_DEPENDENCY(AssumptionCacheTracker)
|
||||
INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
|
||||
INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass)
|
||||
INITIALIZE_PASS_DEPENDENCY(PhiValuesWrapperPass)
|
||||
INITIALIZE_PASS_END(BasicAAWrapperPass, "basicaa",
|
||||
INITIALIZE_PASS_END(BasicAAWrapperPass, "basic-aa",
|
||||
"Basic Alias Analysis (stateless AA impl)", true, true)
|
||||
|
||||
FunctionPass *llvm::createBasicAAWrapperPass() {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
|
||||
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
|
||||
|
||||
|
|
Loading…
Reference in New Issue