OSDN Git Service

[PM] Remove support for omitting the AnalysisManager argument to new
authorChandler Carruth <chandlerc@gmail.com>
Fri, 17 Jun 2016 00:11:01 +0000 (00:11 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 17 Jun 2016 00:11:01 +0000 (00:11 +0000)
commit04d0fe9c10b2e1337fd99fd61b6917c1e460c301
tree40f9aacb7c3ce17ca3a9de74333bf36bf377e8b4
parent5e71c1e0a775ac9cbeb70e8b5fb82c731a0e9464
[PM] Remove support for omitting the AnalysisManager argument to new
pass manager passes' `run` methods.

This removes a bunch of SFINAE goop from the pass manager and just
requires pass authors to accept `AnalysisManager<IRUnitT> &` as a dead
argument. This is a small price to pay for the simplicity of the system
as a whole, despite the noise that changing it causes at this stage.

This will also helpfull allow us to make the signature of the run
methods much more flexible for different kinds af passes to support
things like intelligently updating the pass's progression over IR units.

While this touches many, many, files, the changes are really boring.
Mostly made with the help of my trusty perl one liners.

Thanks to Sean and Hal for bouncing ideas for this with me in IRC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272978 91177308-0d34-0410-b5e6-96231b3b80d8
49 files changed:
include/llvm/Analysis/AssumptionCache.h
include/llvm/Analysis/CallGraph.h
include/llvm/Analysis/LazyCallGraph.h
include/llvm/Analysis/LoopInfo.h
include/llvm/Analysis/PostDominators.h
include/llvm/Analysis/ProfileSummaryInfo.h
include/llvm/Analysis/TargetLibraryInfo.h
include/llvm/Analysis/TargetTransformInfo.h
include/llvm/Bitcode/BitcodeWriterPass.h
include/llvm/IR/Dominators.h
include/llvm/IR/IRPrintingPasses.h
include/llvm/IR/PassManager.h
include/llvm/IR/PassManagerInternal.h
include/llvm/IR/Verifier.h
include/llvm/Transforms/IPO/ConstantMerge.h
include/llvm/Transforms/IPO/DeadArgumentElimination.h
include/llvm/Transforms/IPO/ElimAvailExtern.h
include/llvm/Transforms/IPO/ForceFunctionAttrs.h
include/llvm/Transforms/IPO/GlobalDCE.h
include/llvm/Transforms/IPO/StripDeadPrototypes.h
include/llvm/Transforms/IPO/WholeProgramDevirt.h
include/llvm/Transforms/Scalar/ADCE.h
include/llvm/Transforms/Scalar/LowerAtomic.h
include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h
include/llvm/Transforms/Scalar/Reassociate.h
lib/Analysis/LoopInfo.cpp
lib/Analysis/LoopPass.cpp
lib/Analysis/PostDominators.cpp
lib/Analysis/ProfileSummaryInfo.cpp
lib/Analysis/TargetLibraryInfo.cpp
lib/Analysis/TargetTransformInfo.cpp
lib/Bitcode/Writer/BitcodeWriterPass.cpp
lib/IR/Dominators.cpp
lib/IR/IRPrintingPasses.cpp
lib/IR/Verifier.cpp
lib/Passes/PassBuilder.cpp
lib/Transforms/IPO/ConstantMerge.cpp
lib/Transforms/IPO/DeadArgumentElimination.cpp
lib/Transforms/IPO/ElimAvailExtern.cpp
lib/Transforms/IPO/ForceFunctionAttrs.cpp
lib/Transforms/IPO/GlobalDCE.cpp
lib/Transforms/IPO/StripDeadPrototypes.cpp
lib/Transforms/IPO/WholeProgramDevirt.cpp
lib/Transforms/Scalar/ADCE.cpp
lib/Transforms/Scalar/LowerAtomic.cpp
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
lib/Transforms/Scalar/Reassociate.cpp
unittests/Analysis/CGSCCPassManagerTest.cpp
unittests/IR/PassManagerTest.cpp