aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/AliasSetTracker.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-11-14 15:46:00 +0100
committerNikita Popov <npopov@redhat.com>2022-11-14 15:50:38 +0100
commit458ae539dffd0ec2c02d3f4121b65b54bfd655ab (patch)
tree75d69ee49ea2ca331c79ed17cf7951de84654c47 /llvm/lib/Analysis/AliasSetTracker.cpp
parentcc5f93bb49fd241b22f753065acafdbd3edf8a08 (diff)
downloadllvm-458ae539dffd0ec2c02d3f4121b65b54bfd655ab.zip
llvm-458ae539dffd0ec2c02d3f4121b65b54bfd655ab.tar.gz
llvm-458ae539dffd0ec2c02d3f4121b65b54bfd655ab.tar.bz2
[AST] Remove legacy AliasSetPrinter pass
A NewPM version of this pass exists, drop the legacy version of this testing-only pass.
Diffstat (limited to 'llvm/lib/Analysis/AliasSetTracker.cpp')
-rw-r--r--llvm/lib/Analysis/AliasSetTracker.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp
index f092713..24bcb8a 100644
--- a/llvm/lib/Analysis/AliasSetTracker.cpp
+++ b/llvm/lib/Analysis/AliasSetTracker.cpp
@@ -698,42 +698,6 @@ AliasSetTracker::ASTCallbackVH::operator=(Value *V) {
// AliasSetPrinter Pass
//===----------------------------------------------------------------------===//
-namespace {
-
- class AliasSetPrinter : public FunctionPass {
- public:
- static char ID; // Pass identification, replacement for typeid
-
- AliasSetPrinter() : FunctionPass(ID) {
- initializeAliasSetPrinterPass(*PassRegistry::getPassRegistry());
- }
-
- void getAnalysisUsage(AnalysisUsage &AU) const override {
- AU.setPreservesAll();
- AU.addRequired<AAResultsWrapperPass>();
- }
-
- bool runOnFunction(Function &F) override {
- auto &AAWP = getAnalysis<AAResultsWrapperPass>();
- AliasSetTracker Tracker(AAWP.getAAResults());
- errs() << "Alias sets for function '" << F.getName() << "':\n";
- for (Instruction &I : instructions(F))
- Tracker.add(&I);
- Tracker.print(errs());
- return false;
- }
- };
-
-} // end anonymous namespace
-
-char AliasSetPrinter::ID = 0;
-
-INITIALIZE_PASS_BEGIN(AliasSetPrinter, "print-alias-sets",
- "Alias Set Printer", false, true)
-INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass)
-INITIALIZE_PASS_END(AliasSetPrinter, "print-alias-sets",
- "Alias Set Printer", false, true)
-
AliasSetsPrinterPass::AliasSetsPrinterPass(raw_ostream &OS) : OS(OS) {}
PreservedAnalyses AliasSetsPrinterPass::run(Function &F,